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

add dynamic column in static databound column grid issues

1 Answer 55 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Nanthakumar
Top achievements
Rank 1
Nanthakumar asked on 17 Nov 2014, 01:14 PM
Hi,

I have four static databound columns in radgrid like  Column1,column2, Column3 and Column4 with binding datatable its working fine  like sorting,paging. etc.
if i'm going to add additional one databound or numberic bound  column thats "Column5" through programatically  in pageinit event means its not working . same column adding more than once on each postback. Column5 ,Column6 without header..

Can you give sample project with this scenario?

1 Answer, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 20 Nov 2014, 10:35 AM
Hello Nanthakumar,

Note that mixing declarative and programmatic creation of columns in RadGrid is not supported. You should either declare all columns in the markup or set them dynamically in the code-behind.

When you create columns programmatically you should follow one of the approaches illustrated in the following article:


Regards,
Viktor Tachev
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
Nanthakumar
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Share this question
or