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

Can't get GridHTMLEditorColumnEditor to work

1 Answer 95 Views
This is a migrated thread and some comments may be shown as answers.
Top achievements
Rank 1
Jay asked on 20 Oct 2010, 02:08 AM
I'm trying to use the GridHTMLEditorColumnEditor control with my grid but it just renders as a simple textbox when switching to edit mode.  The other external column editors I use work just fine.  Attached is a screenshot of what it looks like when it renders.  I couldn't find much documentation on this control.  Do I need to set some other properties or something?

<telerik:RadGrid ID="rgCesWeeklyLogs" runat="server"
    AutoGenerateColumns="False" GridLines="None"
    AllowPaging="true" AllowSorting="true"
    <MasterTableView CommandItemDisplay="None" DataKeyNames="Id">
        <CommandItemSettings ExportToPdfText="Export to Pdf" />
           <telerik:GridTemplateColumn UniqueName="EditLog">
                    <asp:ImageButton ID="btnEdit" runat="server" ImageUrl="~/Images/edit-icon.jpg" CommandName="Edit" ToolTip="Edit Record" />
            <telerik:GridBoundColumn DataField="ActivityDate" ReadOnly="true" DataFormatString="{0:d}" />
            <telerik:GridBoundColumn DataField="DayOfWeek" ReadOnly="true" HeaderText="Day of Week" />
            <telerik:GridBoundColumn DataField="Activity" HeaderText="Planned Activity" ColumnEditorID="GridHTMLEditorColumnEditor1" />
            <telerik:GridBoundColumn DataField="Outcome" HeaderText="Outcome" ColumnEditorID="ActivityEditor" />
             <telerik:GridBoundColumn DataField="LastUpdated" HeaderText="Last Updated" ReadOnly="true" />
<telerik:GridTextBoxColumnEditor ID="ActivityEditor" TextBoxMode="MultiLine" TextBoxStyle-Width="500px" TextBoxStyle-Height="200px" runat="server" />
<br />
<telerik:GridHTMLEditorColumnEditor ID="GridHTMLEditorColumnEditor1"

1 Answer, 1 is accepted

Sort by
Telerik team
answered on 22 Oct 2010, 02:24 PM
Hi Jay,

If you want to display RadEditor when you click the Edit Image button, you should use the correct column type, e.g. replace GridBoundColumn with GridHTMLEditorColumn, e.g.

<telerik:GridHTMLEditorColumn  DataField="Activity" HeaderText="Planned Activity" ColumnEditorID="GridHTMLEditorColumnEditor1" />

You can find more information in this help article:

For your convenience I have attached my test project.

Best regards,
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Asked by
Top achievements
Rank 1
Answers by
Telerik team
Share this question