This is a migrated thread and some comments may be shown as answers.

RadGrid change Page Size input box doesn't exist for TopAndBottom page style

2 Answers 317 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rich
Top achievements
Rank 2
Rich asked on 23 Mar 2009, 06:46 PM
Hi -

I'm using the PagerStyle-Mode = "NextPrevNumericAndAdvanced" so that my client can have all the paging options and *mainly* dynamically be able choose the exact number of records returned using the textbox.  They requested to have the paging put on the TopAndBottom, but the textbox to directly input the page size disappears. 

Short of writing all the code to have custom paging to revive this feature, is there any way to have this function reappear on the TopAndBottom?  Or any reason why it only appears with the pager style at the bottom?

Thanks!
Rich

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 24 Mar 2009, 05:31 AM
Hi Rich,

I tried setting the PagerStyle-Position to TopAndBottom and the TextBox for entering the PageSize appears on both bottom and top pager item. Which version of the Grid are you using? Mine is RadControls for asp.net AJAX(2008.03.1314.20).

ASPX:
 
<MasterTableView  PagerStyle-Position="TopAndBottom"   
PagerStyle-Mode="NextPrevNumericAndAdvanced" DataSourceID="SqlDataSource1"


Thanks
Shinu

                



0
Rich
Top achievements
Rank 2
answered on 24 Mar 2009, 02:30 PM
Hi -

Thanks for the reply.  I am using version 2009.1 311; however, you pointed out something that helped me get it working.  I had the PagerStyle-Mode in the RadGrid element and NOT the MasterTableView.  See below. (sorry for the markup mess but I couldn't beat the editor into submission to format it cleanly :( )

<telerik:RadGrid ID="gridSearchResults" runat="server"

 

AllowPaging="true" 

 

AllowSorting="true" 

 

PageSize="100"  

 

OnNeedDataSource="gridSearchResults_NeedDataSource" 

 

ShowGroupPanel="true"  
AllowMultiRowSelection="true"  
EnableLinqExpressions="false" 
OnItemCreated="gridSearchResults_ItemCreated" 

 

 

PagerStyle-Mode="NextPrevNumericAndAdvanced" >
   

 

 

 

 

<MasterTableView AutoGenerateColumns="false" 

 

PageSize="50"  

PagerStyle-Position

 

="TopAndBottom"

 

NoMasterRecordsText="Currently no records found. Please review your search criteria or submit a new query.">

I was under the impression that the element would fall through and be inherited by the MasterTableView (and any detail tables).

I added the PagerStyle-Mode="NextPrevNumericAndAdvanced" to the MasterTableView directly and it works as I would have expected.  Thanks for your help!  I guess I should have tried that in the first place but I overlooked it.

Thanks again!
Rich
Tags
Grid
Asked by
Rich
Top achievements
Rank 2
Answers by
Shinu
Top achievements
Rank 2
Rich
Top achievements
Rank 2
Share this question
or