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

Problem while dynamically adding columns in Rad Grid

1 Answer 51 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Brijendra Kumar
Top achievements
Rank 1
Brijendra Kumar asked on 20 Jan 2009, 11:24 AM
Hi All,

I have taken a telerik grid. In markup i don't have any columns. I want to create columns runtime based on data whose i want to bind.
Apply sorting on selected columns, paging and take some action on itemcommand event.

I have added columns at runtime in grid. But problem is that, Every time when page postbacks, it creates columns and binds grid again. It will be very combersome and slowdown to response. I want that when page load then grid columns has been created and
after that grid state should be maintained.

Does anybody know, please tell me how to do this?
I will be highly greatful to yours...


Thanks & Regards
Brijendra pandey



1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 23 Jan 2009, 07:27 AM
Hi Brijendra,

The following article contains additional information on the two possible ways to create the control structure dynamically.
I hope one of them is suitable for you.

Best wishes,
Yavor
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Brijendra Kumar
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or