Hi Everyone,
Problem Statement: Inside of an ASP DetailsView, I have declared a RadEditor. The content is bound inline with the content property. When the field is empty, I need to display a stylized (greyed out or whatever..) set of template text. This is to help the users properly fill in the field. I can't seem to figure out the best way to accomplish this.
Tried so far: Bind the content inline, and also put the template text in the content tags within the control declaration.
Is there something I can do in the DetailsView databind to check the contents then post the template text?
Here is the way I am binding this now:
<
asp:TemplateField
HeaderText
=
"Summary"
SortExpression
=
"Summary"
>
<
EditItemTemplate
>
<
telerik:RadEditor
ID
=
"reSummary"
runat
=
"server"
Height
=
"80"
Width
=
"500"
ToolsFile
=
"xml\RadEditorToolbars.xml"
Content='<%# Bind("Summary") %>'>
<
CssFiles
>
<
telerik:EditorCssFile
Value
=
"Styles/EditorContentArea.css"
/>
</
CssFiles
>
</
telerik:RadEditor
>
<
br
/>
<
br
/>
<
br
/>
</
EditItemTemplate
>
<
InsertItemTemplate
>
<
asp:TextBox
ID
=
"TextBox3"
runat
=
"server"
Text='<%# Bind("Summary") %>'></
asp:TextBox
>
</
InsertItemTemplate
>
<
ItemTemplate
>
<
asp:Label
ID
=
"Label3"
runat
=
"server"
Text='<%# Bind("Summary") %>'></
asp:Label
>
</
ItemTemplate
>
<
ControlStyle
Width
=
"600px"
/>
<
HeaderStyle
HorizontalAlign
=
"Right"
VerticalAlign
=
"Top"
Width
=
"600px"
/>
</
asp:TemplateField
>
Thanks,
Daniel