Hi,
I am currently working on a Media Library module for a CMS. Reading a folder in the file system I bind the results to a RadListView that has a PageSize of n (12 at the moment) in order to display its content: images.
In the RadDataPager I have a RadButton with the OnClick
I am currently working on a Media Library module for a CMS. Reading a folder in the file system I bind the results to a RadListView that has a PageSize of n (12 at the moment) in order to display its content: images.
DirectoryInfo di =
new
DirectoryInfo(MediaLibPath);
FileSystemInfo[] files = di.GetFiles();
var fileByUploadedDate = files.OrderByDescending(f => f.CreationTime);
ResourceLV.DataSource = files;
ResourceLV.DataBind();
In the RadDataPager I have a RadButton with the OnClick
ResourceLV.PageSize += 12;
ReloadResourceListView();
ReloadResourceListView() rebinds the ListView. Very similar to this sample:
http://demos.telerik.com/aspnet-ajax/grid/examples/programming/customizingpager/defaultcs.aspx
What I am trying to avoid is rebind every time as there could be hundreds of images in the folder being
read. Is it possible to have the PageSize increase sort of like google images search results.
What would your suggestion be? What about the PageSize from Grid, could that be emulated too?
Thanks