ASPxGridView
使用时如何将 Tiny MCE 集成EditItemTemplate
到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