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

data in CommandItemTemplate lost when you expand a group or details table

1 Answer 16 Views
Grid
This is a migrated thread and some comments may be shown as answers.
andieje
Top achievements
Rank 1
andieje asked on 09 Nov 2012, 07:19 PM
Hello

I am using radgrid q3 2009. I am setting information in a CommandItemTemplate in the pre_render event of the grid. However if the grid is grouped and/or has a master/detail relationship the information in the CommandItemTemplate is lost/reset when you expand the group or details table. Please can you advise how to resolve this

thanks

1 Answer, 1 is accepted

Sort by
0
Angel Petrov
Telerik team
answered on 14 Nov 2012, 01:26 PM
Hi Andieje,

When postback occurs the RadGrid will be recreated and some changes may be lost. However RadGrid Pre_Render will be called again and the changes will be applied once more. Could you please elaborate more on what exactly are you changing in the CommandItemTemplate and do you make the changes only if postback has occurred. I have created a simple project in which I change a button text in the Pre_Render of the text always stays the same regardless of the postback. Additionally it would be helpful if you could send us your markup and the relevant code behind.

Kind regards,
Angel Petrov
the Telerik team
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 their blog feed now.
Tags
Grid
Asked by
andieje
Top achievements
Rank 1
Answers by
Angel Petrov
Telerik team
Share this question
or