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

Persisting data of RadTextBoxes created with ITemplate on Postback

1 Answer 25 Views
Input
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 23 Jan 2009, 06:07 PM
I have a DetailsView control that I'm adding RadTextBox's via the EditTemplate. An DataBinding event handler is added to each rtb.

Everything works fine except when I go to Update or Insert a new record. When it comes time to grab the data values from the textboxes, they either have their default values from the databind or their empty. Because Templates need to be created on every post back, I'm struggling on finding  a solution for persisting the values that were in the textboxes prior to the post back. Any assistance would be greatly appreciated.

Thanks
Alex

1 Answer, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 26 Jan 2009, 06:52 PM
Hello Alex,

For your convenience I've prepared sample application. You can find it attached to this post.
You need just to add RadControls for ASP.NET AJAX assembly into bin folder.

I hope this helps.

Kind regards,
Nikolay
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Input
Asked by
Alex
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Share this question
or