当前位置:首页 > 开发 > Web前端 > 前端 > 正文

Property null not found

发表于: 2012-08-13   作者:darrenzhu   来源:转载   浏览:
摘要: When you got error message like "Property null not found ***", try to fix it by the following way: 1)if you are using AdvancedDatagrid, make sure you only update the data in the data prov
When you got error message like "Property null not found ***", try to fix it by the following way:

1)if you are using AdvancedDatagrid, make sure you only update the data in the data provider instead of setting a new reference to data provider each time.
right way:
(dgPortfolioViewer.dataProvider as ArrayCollection).removeAll();
(dgPortfolioViewer.dataProvider as ArrayCollection).addAll(value);

wrong way:
dgPortfolioViewer.dataProvider=oldData;
dgPortfolioViewer.dataProvider=newData;

2) make sure the propery name in datafield is existed in your object

Property null not found

  • 0

    开心

    开心

  • 0

    板砖

    板砖

  • 0

    感动

    感动

  • 0

    有用

    有用

  • 0

    疑问

    疑问

  • 0

    难过

    难过

  • 0

    无聊

    无聊

  • 0

    震惊

    震惊

版权所有 IT知识库 CopyRight © 2009-2015 IT知识库 IT610.com , All Rights Reserved. 京ICP备09083238号