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

GridHtmlColumnEditor not binding in editform template

1 Answer 66 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
NVB
Top achievements
Rank 1
NVB asked on 29 Jun 2012, 03:57 AM

Hello,

I have GridHTMLEditorColumn to display a notes_description.  I want to use Editform for update and insert, but for somereason I don't see the editform is not displaying the GridHtmlEditorColumnEditor defined in FormTemplate .  

Am I missing something in declaration  of this editor in FormTemplate

Thanks


<telerik:RadAjaxPanel runat="server" ID="RadAjaxPanel1" LoadingPanelID="RadAjaxLoadingPanel1">

<telerik:RadGrid ID="RadGridC" DataSourceID="SqlDataSourc1e" runat="server" skin="Windows7"

Height="500px" CellSpacing="0" GridLines="None" NoDetailRecordsText="No records to display"

AutoGenerateEditColumn="false">

<MasterTableView AllowAutomaticInserts="true" AllowAutomaticUpdates="true"AutoGenerateColumns="false"

CommandItemDisplay="Top" DataKeyNames="YEAR" EditMode="PopUp" ShowHeader="false" ShowFooter="false">
 
<CommandItemSettings AddNewRecordText="Add New record"></CommandItemSettings>
 
<Columns>
 
<telerik:GridEditCommandColumnUniqueName="EditCommandColumn" HeaderStyle-Width="20px" ButtonType="ImageButton" >
 
</telerik:GridEditCommandColumn>

<telerik:GridHTMLEditorColumn UniqueName="Notes" DataField="NOTE_DESC" SortExpression="NOTE_DESC"

HeaderStyle-Width="600px"  ItemStyle-Wrap="true" >

</telerik:GridHTMLEditorColumn>

</Columns>
<EditFormSettings PopUpSettings-Modal="true"
PopUpSettings-Height="400px"
PopUpSettings-Width="800px"
PopUpSettings-ShowCaptionInEditForm="false"
InsertCaption="Adding New record"
EditFormType="Template" >
<FormTemplate>
 <table id="Table2">
 <tr>
 <td>
 <telerik:GridHTMLEditorColumnEditor runat="server" ID="noteseditor" Editor-Content='<%# Bind("NOTE_DESC") %>'
 Editor-EditModes="Design" Editor-OnClientLoad="LimitCharacters" Editor-Height="300px" Editor-Width="200px" >
 </telerik:GridHTMLEditorColumnEditor>
 
</td>
 
</tr>
 
</table>
 
</FormTemplate>

</EditFormSettings>
</MasterTableView>
<ClientSettings>
<Selecting AllowRowSelect="true"/>
<Scrolling AllowScroll="true" UseStaticHeaders="true" />
</ClientSettings>
</RadGrid>
</telerik:RadAjaxPanel>

 

1 Answer, 1 is accepted

Sort by
0
Tsvetoslav
Telerik team
answered on 03 Jul 2012, 09:26 AM
Hi Vemula,

What you need in your form template is a RadEditor control, not a GridHTMLColumnEditor. Just replace it, bind it to the corresponding DataField and retest your project.

Regards,
Tsvetoslav
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
General Discussions
Asked by
NVB
Top achievements
Rank 1
Answers by
Tsvetoslav
Telerik team
Share this question
or