AdvanceDataGrid 节点在刷新时崩溃

发布于 2024-09-15 04:04:06 字数 252 浏览 8 评论 0原文

我有一个 AdvancedDataGrid,我正在尝试使用来自 Web 服务的数据进行更新,我每 10 秒轮询一次。我使用 HierarchicalData 对象向网格提供数据。更新似乎工作正常,除了在每次更新时,刷新网格时展开的任何节点都会折叠。更奇怪的是,当我深入研究事物的内部并查看支持网格的 HierarchicalCollectionView 的内容时,我可以看到 openNodes 属性正确包含我打开的节点,但这些节点未显示为打开网格...状态似乎不一致。任何帮助将不胜感激!

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!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

春风十里 2024-09-22 04:04:06

我尝试避开该组件。我认为最好的选择是扩展它并实现您需要的功能(您可能最终会覆盖大量逻辑来获得您需要的功能)。

您已经知道可以利用 openNodes 属性...

我知道这个答案不会立即帮助您,但如果您花时间推出自己的组件,您稍后会感谢自己。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文