AdvanceDataGrid nodes collapse on refresh

二次信任 提交于 2019-12-24 20:03:35

问题


I have an AdvancedDataGrid which Im attemping to update with data from a web service that I poll once very 10 seconds. Im using a HierarchicalData object to provide data to the grid. The update seems to work fine, except that on each update, any nodes that were expanded are collapsed when the grid is refreshed. Stranger still, when I dig down into the bowels of the thing and look at the contents of the HierarchicalCollectionView that backs the grid, I can see that the openNodes property correctly contains the nodes that I opened, but those nodes are not shown as open on the grid...the state seems inconsistent. Any help would be much appreciated!


回答1:


I try and steer clear of that component. I think your best bet is to extend it and implement the functionality you need (you will probably end up overriding a good amount of logic to get what you need).

You already know that you can utilize the openNodes property...

I know this answer doesn't help you immediately, but you will thank yourself later if you take the time to roll out your own component.



来源:https://stackoverflow.com/questions/3517769/advancedatagrid-nodes-collapse-on-refresh

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!