I have two data controls that users can switch between, one a datagrid and one a RadListView that is tied to the datapager below:
<telerik:RadDataPager ID="RadDataPager1" runat="server" PagedControlID="listResults" PageSize="20">
<Fields>
<telerik:RadDataPagerButtonField FieldType="FirstPrev" />
<telerik:RadDataPagerButtonField FieldType="Numeric" />
<telerik:RadDataPagerButtonField FieldType="NextLast" />
<telerik:RadDataPagerNumericPageSizeField LabelText="Page Size:" SubmitButtonText="Change" TextBoxWidth="25" Visible="true" />
<telerik:RadDataPagerGoToPageField CurrentPageText="Page: " TotalPageText="of" SubmitButtonText="Go" TextBoxWidth="30" />
</Fields>
</telerik:RadDataPager>
The datagrid works just fine when changing the page size and hitting the enter key. The RadListView version I have with datapager does not.
I ended up just creating a hidden submit button and setting the default button for the whole page to that but really this is just a work around and to me the RadDataPagerNumericPageSizeField in RadDatapager should act just like the pager control built in to RadDatagrid.
With the hidden submit button the Datagrid still acts normally when changing the page size and hitting enter (which is great and the way I want it to act).
<telerik:RadDataPager ID="RadDataPager1" runat="server" PagedControlID="listResults" PageSize="20">
<Fields>
<telerik:RadDataPagerButtonField FieldType="FirstPrev" />
<telerik:RadDataPagerButtonField FieldType="Numeric" />
<telerik:RadDataPagerButtonField FieldType="NextLast" />
<telerik:RadDataPagerNumericPageSizeField LabelText="Page Size:" SubmitButtonText="Change" TextBoxWidth="25" Visible="true" />
<telerik:RadDataPagerGoToPageField CurrentPageText="Page: " TotalPageText="of" SubmitButtonText="Go" TextBoxWidth="30" />
</Fields>
</telerik:RadDataPager>
The datagrid works just fine when changing the page size and hitting the enter key. The RadListView version I have with datapager does not.
I ended up just creating a hidden submit button and setting the default button for the whole page to that but really this is just a work around and to me the RadDataPagerNumericPageSizeField in RadDatapager should act just like the pager control built in to RadDatagrid.
With the hidden submit button the Datagrid still acts normally when changing the page size and hitting enter (which is great and the way I want it to act).