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

[Solved] No value from editor when using ajax

1 Answer 101 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Mattias
Top achievements
Rank 1
Mattias asked on 05 Jun 2009, 09:18 AM
Hi,
I have a radgrid in an radajaxpanel and in the grids formtemplate I have an editor from XStandard.com (active-x editor).
If I remove the ajaxpanel the update works and I get the text from the editor.
But if I use the ajaxpanel the value is allways blank!
What can be the reason for that?

Regards,
Mattias

<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="radAjaxLoadingPanel"
     <telerik:RadGrid ID="radGridMenus" runat="server" AllowPaging="false" CssClass="radgrid" 
... 
 
     <EditFormSettings EditFormType="Template"
            <FormTemplate> 
                 <xs:XHTMLEditor ID="xhtmlEditorPreamble" runat="server" OnLoad="Editor_Load" /> 
... 
 

protected void radGridMenus_UpdateCommand(object source, GridCommandEventArgs e) 
     GridEditFormItem gridItem = e.Item as GridEditFormItem; 
... 
     content.Preamble = ((XStandard.WebForms.XHTMLEditor)gridItem.FindControl("xhtmlEditorPreamble")).Value.Trim();
...


1 Answer, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 10 Jun 2009, 08:23 AM
Hello Mattias,

Can you please check whether the active-x editor's value is passed as expected when you place it inside regular MS UpdatePanel and postback from a button which resides inside the same panel? If not, most probably the editor does not provide interoperability with the ASP.NET AJAX framework and this causes the erroneous behavior when it is placed inside our grid which is wrapped in RadAjaxPanel.

Note that the alternative solution would be to replace it with our RadEditor as shown on this online demo (as part of GridHTMLEditorColumn):

http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/columntypes/defaultcs.aspx

or inside edit template of a template column or FormTemplate custom edit form as demonstrated in the following KB article:

http://www.telerik.com/support/kb/aspnet-ajax/grid/using-radeditor-as-editor-in-template-column-of-radgrid.aspx

Kind regards,
Sebastian
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Ajax
Asked by
Mattias
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Share this question
or