在asp.net gridview中进行虚拟滚动 [英] virtual scrolling in asp.net gridview

查看:88
本文介绍了在asp.net gridview中进行虚拟滚动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以在asp.net的gridview中实现虚拟滚动.有任何解决方案,请回复我.

Any can implement virtaul scrolling in gridview in asp.net. have any solution please reply me.

推荐答案

亲爱的所有人,

什么是虚拟滚动?
答案:-可以自定义Grid的虚拟滚动功能,使其类似于分页功能.上下移动垂直滚动条以浏览网格的页面,这些页面将按需加载.

要启用带有分页功能的虚拟滚动,请将ScrollingSettings.EnableVirtualScrolling和ScrollingSettings.UsePagingForVirtualScrolling属性设置为true.另外,您需要通过设置ScrollingSettings.ScrollHeight属性来确保启用了垂直滚动功能.在DataSourceNeeded事件的事件处理程序中执行从数据库中检索记录的操作.


重要链接:-

http://community.devexpress.com/blogs/aspnet/archive/2009/05/18/virtual-scrolling-and-linq-server-mode-in-asp-net-gridview.aspx [ http://www.obout.com/grid/aspnet_scroll_virtual_paging.aspx [ http://demos.telerik.com/aspnet-ajax/grid/examples/client/virtualscrollpagingclientbinding/defaultcs.aspx [ ^ ]

无需第三方控制即可进行虚拟滚动的链接:-
http: //www.eggheadcafe.com/tutorials/asp-net/b8381915-06d9-4538-b4bb-5ac2a8e73f34/implementing-continuous-scrolling-ui-pattern-in-aspnet.aspx [
Dear All,

What is Virtual Scrolling?
Answer:- The virtual scrolling feature of the Grid can be customized to work similar to the paging feature. Move the vertical scrollbar up or down to navigate through the pages of the Grid, which will be loaded on demand.

To enable the virtual scrolling with paging feature set the ScrollingSettings.EnableVirtualScrolling and ScrollingSettings.UsePagingForVirtualScrolling properties to true. Also, you need to make sure the vertical scrolling feature is enabled, by setting the ScrollingSettings.ScrollHeight property. The retrieving of records from the database is performed in the event handler of the DataSourceNeeded event.


Important links:-

http://community.devexpress.com/blogs/aspnet/archive/2009/05/18/virtual-scrolling-and-linq-server-mode-in-asp-net-gridview.aspx[^]

http://www.obout.com/grid/aspnet_scroll_virtual_paging.aspx[^]

http://demos.telerik.com/aspnet-ajax/grid/examples/client/virtualscrollpagingclientbinding/defaultcs.aspx[^]

Link for virtual scrolling without third part control:-
http://www.eggheadcafe.com/tutorials/asp-net/b8381915-06d9-4538-b4bb-5ac2a8e73f34/implementing-continuous-scrolling-ui-pattern-in-aspnet.aspx[^]


这篇关于在asp.net gridview中进行虚拟滚动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆