I have a RadListView and a RadDataPager. Ive managed to set it up using standard paging but I want to use custom paging.
In standard mode, whenever I select the 'next' button, it pages the ListView, but then freezes.
I cant see how I would implement my own custom paging.
Im retrieving a list ob objects using LINQ
I pass in the current page and the pagsize, and use 'skip' in the LINQ command
I want to set the current page whenever I select 'next' or a page number from the datapager, how can this be done?
In standard mode, whenever I select the 'next' button, it pages the ListView, but then freezes.
I cant see how I would implement my own custom paging.
Im retrieving a list ob objects using LINQ
I pass in the current page and the pagsize, and use 'skip' in the LINQ command
protected void RadListView1_NeedDataSource(object sender, Telerik.Web.UI.RadListViewNeedDataSourceEventArgs e)
{
List<
Business.Logic.BusinessObjects.AssociationRequest
> lst = new List<
Business.Logic.BusinessObjects.AssociationRequest
>();
lst = requestManager.GetArtistRequests(this.CurrentArtistID, false, this.CurrentPage, this.PageSize);
if (lst.Count > 0)
{
this.RadListView1.DataSource = lst;
}
else
{
if (RadListView1.DataSourceID == "")
{
RadListView1.DataSource = new string[] { };
}
}
}
I want to set the current page whenever I select 'next' or a page number from the datapager, how can this be done?