Click or drag to resize

MapperDatasheetEncodeText Method (String, Boolean, Boolean, String, Boolean)

Encode the provided text for use in the DataGrid. The encoding may vary by target browser. Example of this include handling truncated text in Safari, and handling hidden columns in browsers other than IE and Firefox.

Namespace:  NetQuarry.Data.WebMappers
Assembly:  EAP.WebMappers (in EAP.WebMappers.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
protected string EncodeText(
	string s,
	bool isVisibleCol,
	bool allowWrap,
	string style,
	bool htmlContent
)

Parameters

s
Type: SystemString
The string to encode.
isVisibleCol
Type: SystemBoolean
Specifies whether or not the column is visible to the user.
allowWrap
Type: SystemBoolean
Specifies whether or not the column should be allowed to wrap.
style
Type: SystemString
The CSS style to use when building the fragment.
htmlContent
Type: SystemBoolean
HTML to use instead of s (an unencoded string that must be encoded).

Return Value

Type: String
The encoded text.
See Also