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

Grid losing controls added via Template at runtime

1 Answer 13 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Andrew
Top achievements
Rank 1
Andrew asked on 31 Oct 2008, 03:20 PM
I've got three RadGrids on a single page. Two of them are simply databound to a DataTable at runtime. The third, however, uses a custom template to add custom controls at runtime. When a postback of the entire page occurs, the first two grids retain their data just fine, but the third (the one with custom cells) does not. All the controls disappear and there is nothing in the cells.

Is there no way to make the grid save the custom controls added at runtime?

Thank you.

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 03 Nov 2008, 02:29 PM
Hi Andrew,

When creating the control's structure and adding the items to the templates, please use the following approach.
This will make sure they are persisted.

Best wishes,
Yavor
the Telerik team

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