The problem is that we can’t set the Page Size greater than the Items Count.
We want to be able to set the page size 10 even if there is 4 items in the source list.
Steps to reproduce: bind to the grid the source with 4 items, try to enter 10 to the Page Size texbox, press Change button.
Actual result: the value of the textbox is turned back to previous value.
Expected result: the page size is changed to 10
The aspx code :
<telerik:RadGrid ID="dgdTransList" runat="server" AutoGenerateColumns="True"
GridLines="None" EnableAJAX="true" PageSize="5" ShowFooter="true"
AllowPaging="true"
>
<PagerStyle
Visible="true"
Mode="NextPrevNumericAndAdvanced"
AlwaysVisible="true"
/>
</telerik:RadGrid>
The cs code :
void dgdTransList_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
{
ArrayList list = new ArrayList(new object[] { "one", "two", "three", "four" });
dgdTransList.DataSource = list;
}
Can you please tell us is there any workaround?