我正在使用gridview中的FCKEditor(CKEditor)来替换文本框,但是我遇到两个问题。
1)我该如何包装控件?即使宽度为“ 100%”,它们也会流到列的右侧,当我向下调整宽度时,它只会将其切掉更多
2)如何使用后面的.net代码禁用它?它似乎没有启用,禁用或只读属性?
html:
<asp:GridView ID="gvStuff" runat="server" Width="1300"
SkinID="bootSimpleGrid" PageSize="9999" HeaderStyle-Font-Size="10" DataKeyNames="SomeKey,SomeNumber,Copynotes">
<RowStyle VerticalAlign="Top" />
<Columns>
<asp:TemplateField HeaderText="Key" SortExpression="SomeKey">
<ItemTemplate>
<asp:Literal ID="lblSomeKey" runat="server" Text='<%# Eval("SomeKey") %>'></asp:Literal>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Copy" SortExpression="MarketingCopy">
<ItemTemplate>
<wts:FCKeditor ID="txtCopynotes" runat="server" ToolbarSet="Simple" Height="175px" Width="100%"
Value ='<%# DataBinder.Eval(Container.DataItem, "Copynotes") %>' />
</ItemTemplate>
</Columns>
</asp:GridView>
后面的代码
Dim txtCopynotesAs FredCK.FCKeditorV2.FCKeditor = CType(e.Row.FindControl("txtCopynotes"), FredCK.FCKeditorV2.FCKeditor)
'txtCopynotesAs .Enabled = Not IsCondition -- need to know how to do this