TTIWDBAdvWebGrid &控制器分页,如何让 ctDynEdit 单元格也分页?
我的 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
导致该问题的原因是我将 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.