当在`GridViewDataTextColumn`中使用`EditItemTemplate`时,如何将Tiny MCE集成到`ASPxGridView`?

时间:2012-10-15 04:49:43

标签: c# asp.net tinymce devexpress aspxgridview

ASPxGridView中使用EditItemTemplate时如何将Tiny MCE集成到GridViewDataTextColumn

我试试这个

  tinyMCE.init({
            // General options
            mode: "exact",
            elements: '<%=editorTxt.ClientID%>',
            theme: "advanced", ....

ASPX

<dx:GridViewDataTextColumn FieldName="DETAIL" VisibleIndex="3" Visible="false">
   <DataItemTemplate>
     <dx:ASPxLabel ID="ASPxLabel1" runat="server" EncodeHtml="False" Text='<%#Eval("DETAIL") %>'></dx:ASPxLabel>

</DataItemTemplate>
<EditItemTemplate>
<asp:TextBox ID="editorTxt" runat="server" Text='<%# Bind("DETAIL") %>'></asp:TextBox>
</EditItemTemplate>

但错误引发CS0103: The name 'editorTxt' does not exist in the current context

1 个答案:

答案 0 :(得分:1)

在GridView控件中使用TinyMCE WYSIWYG编辑器将​​在下面的链接中详细说明:

http://crushthesoul.com/using-tinymce-wysiwyg-editor-in-a-gridview-control.aspx

希望得到帮助..