You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: controls/grid/columns/column-types.md
+7-2Lines changed: 7 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -154,9 +154,11 @@ You can find information about binding **RadAutoCompleteBox** in this help artic
154
154
155
155
**GridBoundColumn** displays a table view column bound to a field in the data source of the table view that contains it. To bind this column type to a field, set its **DataField** property to the name of a field.
156
156
157
-
This column supports editing of its data (it implements the **IGridEditableColumn** interface) and provides, by default, **GridTextBoxColumnEditor** as a column editor to allow editing the text for each cell. It also exposes the **HtmlEncode** property (its default value is **False**) which specifies whether the text in the corresponding cell will be encoded automatically or not when displayed in the browser. You can find more information about the nature of HTML encoding here:
157
+
This column supports editing of its data (it implements the **IGridEditableColumn** interface) and provides, by default, **GridTextBoxColumnEditor** as a column editor to allow editing the text for each cell.
It also exposes the **HtmlEncode** property (its default value is **False**) which specifies whether the text in the corresponding cell will be encoded automatically or not when displayed in the browser. Setting the HtmlEncode property to True is recommended to avoid *Cross-Site Scripting (XSS)*, see [RadGrid Security]({%slug grid/security%}).
160
+
161
+
You can find more information about the nature of HTML encoding here: [https://msdn.microsoft.com/en-us/library/system.web.httpserverutility.htmlencode.aspx](https://msdn.microsoft.com/en-us/library/system.web.httpserverutility.htmlencode.aspx)
160
162
161
163
Moreover, the built-in **GridBoundColumn** has an **EmptyDataText** property, which specifies the text that will be displayed in the column cell when it has an empty/null value retrieved from the data source.
162
164
@@ -452,6 +454,9 @@ This column type is editable (implements the **IGridEditableColumn** interface)
452
454
</telerik:GridHTMLEditorColumn>
453
455
````
454
456
457
+
It also exposes the **HtmlEncode** property (its default value is **False**) which specifies whether the text in the corresponding cell will be encoded automatically or not when displayed in the browser. Setting the HtmlEncode property to True is recommended to avoid *Cross-Site Scripting (XSS)*, see [RadGrid Security]({%slug grid/security%}).
458
+
459
+
You can find more information about the nature of HTML encoding here: [https://msdn.microsoft.com/en-us/library/system.web.httpserverutility.htmlencode.aspx](https://msdn.microsoft.com/en-us/library/system.web.httpserverutility.htmlencode.aspx)
455
460
456
461
457
462
>note See the **[GridTemplateColumn](#gridtemplatecolumn)** section below for a comparison between **GridHTMLEditorColumn** and a template column that contains a **RadEditor** control.
0 commit comments