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

RadTextBox in multiline mode will not fire update

3 Answers 116 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Philippe GRACA
Top achievements
Rank 1
Philippe GRACA asked on 03 Jul 2008, 03:39 PM
Hi
I've been implementing a way to display different edit controls depending on data type here : http://www.telerik.com/community/forums/thread/b311D-beechm.aspx

Everything works fine except that if the EditItemTemplate row contains a RadtextBox with multiline enabled, the UPDATE event will not be fired on exit.

Any ideas on the reason why?

Best regards
Philippe

3 Answers, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 07 Jul 2008, 10:24 AM
Hello Philippe,

You need to add the controls inside the ItemCreated event handler of the grid instead on ItemDataBound in order to keep their viewstate and event lifecycle consistent.

Further information about the major differences between the ItemCreated and ItemDataBound events of RadGrid for ASP.NET AJAX you can gather from the help article pointed below:

http://www.telerik.com/help/aspnet-ajax/grddistinguishdifferencesbetweenitemcreateditemdatabound.html

Best regards,
Stephen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Philippe GRACA
Top achievements
Rank 1
answered on 07 Jul 2008, 01:46 PM
Hi
I do not think the issue is there
When I use that code,
<EditItemTemplate> 
 <telerik:RadTextBox ID="rtb" runat="server" TextMode="MultiLine" Rows="2"/>
</EditItemTemplate> 
 
the UpdateCommand is  not fired.
When I change Multiline to SingleLine, the Event is fired and I can update the record in the DB.

What could possibly be the reason?
Best regards
Philippe
0
Pavel
Telerik team
answered on 10 Jul 2008, 07:21 AM
Hello Philippe,

Since we cannot reproduce the problem, the first thing you can try is to upgrade to the latest version of RadControls for Asp.Net Ajax. Here is a useful article from our Knowledge Base that elaborates on how to upgrade.

If that does not help, the best way to proceed will be to open a support ticket and attach to it a small runnable project that reproduces the issue. This will allow us to examine it and advise you accordingly.

Regards,
Pavel
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
Philippe GRACA
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Philippe GRACA
Top achievements
Rank 1
Pavel
Telerik team
Share this question
or