Infragistics UltraGrid:LoadOnDemand 功能无法正常工作

发布于 2024-07-15 07:20:38 字数 217 浏览 16 评论 0原文

我正在使用 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 技术交流群。

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

发布评论

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

评论(3

柳絮泡泡 2024-07-22 07:20:38

有关此问题的更多信息。 我发现当我设置根带的行数时,会引发 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?

夜未央樱花落 2024-07-22 07:20:38

如果我在执行所有操作之前设置根带区的带区和数据,则在执行 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.

千仐 2024-07-22 07:20:38

我们通过使用 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.

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