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

RadGrid Paging with dynamic columns

1 Answer 142 Views
UI for ASP.NET AJAX in ASP.NET MVC
This is a migrated thread and some comments may be shown as answers.
Vikas
Top achievements
Rank 1
Vikas asked on 12 Jan 2011, 01:30 PM

Hello Group,

We are using RADGrid (RadControls for ASP.NET AJAX Q1 2010) . We have some static columns defined in .ascx file and also adding columns (GridBoundColumn) dynamically in code behind.
We are binding data for  dynamic columns using RadGrid_ItemDataBound event. When we try to enable paging on the grid, it behaves ackwardly. My doubt it is happening because of dynamic column.
Can you let us know for dynamic columns , paging needs to be handled in a custom manner  or RadGrid supports that? 

Appreciate your help. 

Thanks,
Vikas Baid

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 12 Jan 2011, 07:15 PM
Hi Vikas,

RadGrid does not support mixing declarative grid columns with grid columns added dynamically at runtime. You should either create all the columns in the grid programmatically, or else define them all in the ASPX file.
For more information about programmatic grid creation, you can refer to the help article below:
http://www.telerik.com/help/aspnet-ajax/grdprogrammaticcreation.html

All the best,
Pavlina
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
UI for ASP.NET AJAX in ASP.NET MVC
Asked by
Vikas
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or