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

RadGrid PageSize

1 Answer 44 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Vitaly
Top achievements
Rank 1
Iron
Iron
Vitaly asked on 21 Nov 2013, 08:49 PM
Hi,
I have a two Radgrid in my aspx page.Based on search criteria I display either one and also it could  display both of them.Default page size is 10.When I display both RadGrid I need to change to page size 5.
I have two different method when either Radgrid Binding set page size to 10 and the other method when both RadGrid must display set page size to 5.
But when I run application it gives me  uknown server error - 500.
when I remove page size application working fine.

Please help me.
thanks,
Vitaly. 

1 Answer, 1 is accepted

Sort by
0
Kostadin
Telerik team
answered on 26 Nov 2013, 09:57 AM
Hello Vitaly,

Thank you for contacting us.

Could you please send us your code declaration and the related code behind in order to observe the issue further? A possible solution is to change the page size on PreRender event handler and then rebind the grids. For your convenience I prepared a small sample and attached it to this thread. By selecting an item in the DropDownList control you will display one of the grid or both of them and also will change their page size.

Please give it a try and let me know if I could provide you any further assistance.

Regards,
Kostadin
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
General Discussions
Asked by
Vitaly
Top achievements
Rank 1
Iron
Iron
Answers by
Kostadin
Telerik team
Share this question
or