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

Can't get GridHTMLEditorColumnEditor to work

1 Answer 122 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Jay
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"
    Skin="Windows7"
 
    AllowPaging="true" AllowSorting="true"
    onneeddatasource="rgCesWeeklyLogs_NeedDataSource"
    onupdatecommand="rgCesWeeklyLogs_UpdateCommand"
    ondatabound="rgCesWeeklyLogs_DataBound">
    <MasterTableView CommandItemDisplay="None" DataKeyNames="Id">
        <CommandItemSettings ExportToPdfText="Export to Pdf" />
        <Columns>
           <telerik:GridTemplateColumn UniqueName="EditLog">
                <ItemTemplate>
                    <asp:ImageButton ID="btnEdit" runat="server" ImageUrl="~/Images/edit-icon.jpg" CommandName="Edit" ToolTip="Edit Record" />
                </ItemTemplate>
            </telerik:GridTemplateColumn>
            <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" />
        </Columns>
    </MasterTableView>
</telerik:RadGrid>
<telerik:GridTextBoxColumnEditor ID="ActivityEditor" TextBoxMode="MultiLine" TextBoxStyle-Width="500px" TextBoxStyle-Height="200px" runat="server" />
<br />
<telerik:GridHTMLEditorColumnEditor ID="GridHTMLEditorColumnEditor1"
    runat="server">
</telerik:GridHTMLEditorColumnEditor>

1 Answer, 1 is accepted

Sort by
0
Rumen
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: http://www.telerik.com/help/aspnet-ajax/grdcustomeditors.html.

For your convenience I have attached my test project.

Best regards,
Rumen
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
Tags
Editor
Asked by
Jay
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or