TTIWDBAdvWebGrid &控制器分页,如何让 ctDynEdit 单元格也分页?

发布于 2024-08-19 01:55:59 字数 302 浏览 2 评论 0原文

我的 Delphi/Intraweb 应用程序使用通过 TDatasource 组件与动态创建的 TClientDataSet 关联的 TMS TTIWDBAdvWebGrid。这个想法是允许用户使用控制器翻阅大量记录,并可以选择在最后一个 DynEdit 列中输入值。除了显示为静态的单个 DynEdit 列之外,分页对所有列都适用。例如,如果我在任何 DynEdit 字段中输入一个值,然后单击控制器上的“下一步”,该页面会正确显示下一页记录,但 DynEdit 列仍显示与上一页相同的编辑值。令人沮丧的是,它在一周前确实有效,但从那以后我一定不小心改变了一些东西。任何帮助将不胜感激。

My Delphi/Intraweb application uses a TMS TTIWDBAdvWebGrid associated with a dynamically created TClientDataSet via a TDatasource component. The idea is to allow a user to page through a large amount of records using the controller, and optionally enter values in the last DynEdit column. The paging works fine for all columns, aside from the single DynEdit column which appears static. For example, if I enter a value in any DynEdit field, and click "next" on the controller, the page does correctly show the next page of records, but the DynEdit column still shows the same edited values of the previous page. What is frustrating is that it did work a week ago, but since then I must have accidentally changed something. Any help would be greatly appreciated.

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

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

发布评论

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

评论(1

︶ ̄淡然 2024-08-26 01:55:59

导致该问题的原因是我将 Intraweb 表单的 UpdateMode 属性设置为 umPartial,并将 TTIWDBAdvWebGrid.AsynchPaging 设置为 true。

将表单的 UpdateMode 设置为 umAll 并禁用 TTIWDBAdvWebGrid.AsynchPaging 后,它会按预期工作。

The problem was caused because I had the Intraweb form's UpdateMode property set to umPartial, and TTIWDBAdvWebGrid.AsynchPaging set to true.

With the form's UpdateMode set to umAll and TTIWDBAdvWebGrid.AsynchPaging disabled, it works as expected.

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