Infragistics UltraGrid:LoadOnDemand 功能无法正常工作
我正在使用 Infragistics Windows Ultragrid 版本 7.3。 我正在尝试将 UltraDataSource 与 LoadOnDemand 模式一起使用。 我定义了三个带:根、子和孙。
当我单击第一行时,它会请求子带的数据,但也会请求第一个子带下的孙子行。
为什么会发生这种情况?
我相信除非我单击子带,否则不应请求这些项目。
I'm using the Infragistics Windows Ultragrid, version 7.3. I'm trying to use an UltraDataSource along with the LoadOnDemand mode. I have three bands defined: root, child and grandchild.
When I click on the first row, it requests the data for the child band but also requests the grandchildren rows under the first child.
Why does it happen?
I believed those items shouldn't be requested unless I click on the child band.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
有关此问题的更多信息。 我发现当我设置根带的行数时,会引发 ultraDataSource 的 InitializeRowsCollection 事件,即
ultraDataSource1.Rows.SetCount(collection.Count);
此时,我尚未将实际行添加到根带中。 为什么需要儿童乐队的物品?
More info on this issue. I have spotted the ultraDataSource's InitializeRowsCollection event is raised when I'm setting up the rows number for the root band, i.e.
ultraDataSource1.Rows.SetCount(collection.Count);
In this point I haven't added yet the actual rows to the root band. Why is it requesting the items for the child band?
如果我在执行所有操作之前设置根带区的带区和数据,则在执行 ultraGrid1.DataSource = ultraDataSource1; 之前不会引发 InitializeRowsCollection 事件。
但它再次为子孙乐队筹集。
If I set up the bands and the data for the root band before everything, then the InitializeRowsCollection event is not raised until I do ultraGrid1.DataSource = ultraDataSource1;
But once again it is raised for the Child and GrandChild Band.
我们通过使用 ultragrid 的 InitializeRowsCollection 事件而不是 UltraDataSource 的事件解决了这个问题。 该事件将按预期触发。
问候。
We have workarounded this by using the ultragrid's InitializeRowsCollection event rather than the UltraDataSource's. This event is fired when expected.
Regards.