自动将行添加到数据视图?
我使用数据视图控件和寻呼机添加行控件来允许用户向数据视图添加更多行。
我可以扩展寻呼机添加行控件,以便在用户到达屏幕底部时自动将行添加到数据视图吗?
I am using a Data View control and the Pager Add Rows control to allow the user to add more rows to the data view.
Can I extend the Pager Add Rows control to automatically add rows to the Data View when the user reaches the bottom of screen?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,您可以使用 jquery 轻松做到这一点。如果你精通道场,你可能可以用类似的方式做到这一点。但这个例子展示了 jQuery。
jquery 代码将尝试查找 pagerAddRows1_ar 或 pagerAddRows2_ar,如果找到,将在到达屏幕底部时自动单击该链接。
实际上,您可以将此代码与 xpage 上的任何类型的寻呼机或链接一起使用。只需确保您的代码点击正确的 ID 即可。
Yes, you can do that easily with jquery. if you master dojo you can probably do it in similar ways. but this example show jQuery.
The jquery code will try and find pagerAddRows1_ar or pagerAddRows2_ar and if found will click the link automatically when you reach the bottom of screen.
You can actually use this code with any kind of pager or link you have on your xpage. just make sure your code click the right id.