GridHtmlColumnEditor not binding in editform template

2 posts, 0 answers
  1. NVB
    NVB avatar
    39 posts
    Member since:
    Apr 2009

    Posted 28 Jun 2012 Link to this post

    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>

     

  2. Tsvetoslav
    Admin
    Tsvetoslav avatar
    1823 posts

    Posted 03 Jul 2012 Link to this post

    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.
Back to Top