Class EditorPropertiesBuilder
Inheritance
System.Object
EditorPropertiesBuilder
Implements
System.Web.IHtmlString
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Syncfusion.EJ.dll
Syntax
public class EditorPropertiesBuilder : IPropertiesBuilder, IHtmlString
Constructors
EditorPropertiesBuilder()
Declaration
public EditorPropertiesBuilder()
EditorPropertiesBuilder(Currency)
Used to display only currency values
Declaration
public EditorPropertiesBuilder(Currency edit)
Parameters
EditorPropertiesBuilder(Numeric)
Used to display only numeric values.
Declaration
public EditorPropertiesBuilder(Numeric edit)
Parameters
EditorPropertiesBuilder(Percent)
Used to display only percentage values
Declaration
public EditorPropertiesBuilder(Percent edit)
Parameters
Fields
editor
Used to display only numeric values.
Declaration
Field Value
Methods
ClientSideEvents(Action<EditorClientSideEventsBuilder>)
Represents the client side events
Declaration
public EditorPropertiesBuilder ClientSideEvents(Action<EditorClientSideEventsBuilder> clientSideEvents)
Parameters
Returns
CssClass(String)
Sets the root CSS class for Editors which allow us to customize the appearance.
Declaration
public EditorPropertiesBuilder CssClass(string cssClass)
Parameters
Type |
Name |
Description |
System.String |
cssClass |
|
Returns
CurrencySymbol(String)
Specifies the currency symbol for currency textbox.
Declaration
public EditorPropertiesBuilder CurrencySymbol(string currencySymbol)
Parameters
Type |
Name |
Description |
System.String |
currencySymbol |
|
Returns
DecimalPlaces(Int32)
Specifies the number of digits that should be allowed after the decimal point.
Declaration
public EditorPropertiesBuilder DecimalPlaces(int decimals)
Parameters
Type |
Name |
Description |
System.Int32 |
decimals |
|
Returns
Enabled()
Specifies the editor control state.
Declaration
public EditorPropertiesBuilder Enabled()
Returns
Enabled(Boolean)
Declaration
public EditorPropertiesBuilder Enabled(bool enabled)
Parameters
Type |
Name |
Description |
System.Boolean |
enabled |
|
Returns
EnablePersistence()
Specify the enablePersistence to editor to save current editor control value to browser cookies for state maintenance.
Declaration
public EditorPropertiesBuilder EnablePersistence()
Returns
EnablePersistence(Boolean)
Declaration
public EditorPropertiesBuilder EnablePersistence(bool enablePersistence)
Parameters
Type |
Name |
Description |
System.Boolean |
enablePersistence |
|
Returns
EnableRTL()
Specifies the Right to Left Direction to editor.
Declaration
public EditorPropertiesBuilder EnableRTL()
Returns
EnableRTL(Boolean)
Declaration
public EditorPropertiesBuilder EnableRTL(bool rtl)
Parameters
Type |
Name |
Description |
System.Boolean |
rtl |
|
Returns
EnableStrictMode()
When enableStrictMode true it allows the value outside of the range also but it highlights the textbox with error class,otherwise it internally changed to the correct value.
Declaration
public EditorPropertiesBuilder EnableStrictMode()
Returns
EnableStrictMode(Boolean)
Declaration
public EditorPropertiesBuilder EnableStrictMode(bool strictMode)
Parameters
Type |
Name |
Description |
System.Boolean |
strictMode |
|
Returns
GroupSeparator(String)
It provides the options to get the customized character to separate the digits. If not set, the separator defined by the current culture.
Declaration
public EditorPropertiesBuilder GroupSeparator(string groupSeparator)
Parameters
Type |
Name |
Description |
System.String |
groupSeparator |
|
Returns
GroupSize(String)
Specifies the number of digits in each group to the editor.
Declaration
public EditorPropertiesBuilder GroupSize(string groupSize)
Parameters
Type |
Name |
Description |
System.String |
groupSize |
|
Returns
Height(String)
Specifies the height of the editor.
Declaration
public EditorPropertiesBuilder Height(string height)
Parameters
Type |
Name |
Description |
System.String |
height |
|
Returns
HtmlAttributes(IDictionary<String, Object>)
It allows to define the characteristics of the Editors control. It will helps to extend the capability of an HTML element.
Declaration
public EditorPropertiesBuilder HtmlAttributes(IDictionary<string, object> itemHtmlAttributes)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IDictionary<System.String, System.Object> |
itemHtmlAttributes |
|
Returns
IncrementStep(Double)
The Editor value increment or decrement based an incrementStep value.
Declaration
public EditorPropertiesBuilder IncrementStep(double incrementStep)
Parameters
Type |
Name |
Description |
System.Double |
incrementStep |
|
Returns
Locale(String)
Defines the localization culture for editor.
Declaration
public EditorPropertiesBuilder Locale(string localize)
Parameters
Type |
Name |
Description |
System.String |
localize |
|
Returns
MaxValue(Double)
Specifies the maximum value of the editor.
Declaration
public EditorPropertiesBuilder MaxValue(double maxValue)
Parameters
Type |
Name |
Description |
System.Double |
maxValue |
|
Returns
MinValue(Double)
Specifies the minimum value of the editor.
Declaration
public EditorPropertiesBuilder MinValue(double minValue)
Parameters
Type |
Name |
Description |
System.Double |
minValue |
|
Returns
Name(String)
Specifies the name of the editor.
Declaration
public EditorPropertiesBuilder Name(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns
NegativePattern(String)
Specifies the pattern for formatting negative values in editor.
Declaration
public EditorPropertiesBuilder NegativePattern(string negativePattern)
Parameters
Type |
Name |
Description |
System.String |
negativePattern |
|
Returns
PositivePattern(String)
Specifies the pattern for formatting positive values in editor.
Declaration
public EditorPropertiesBuilder PositivePattern(string positivePattern)
Parameters
Type |
Name |
Description |
System.String |
positivePattern |
|
Returns
ReadOnly()
Toggles the readonly state of the editor. When the Editor is readonly it doesn’t allow user interactions.
Declaration
public EditorPropertiesBuilder ReadOnly()
Returns
ReadOnly(Boolean)
Declaration
public EditorPropertiesBuilder ReadOnly(bool readOnly)
Parameters
Type |
Name |
Description |
System.Boolean |
readOnly |
|
Returns
Render()
Renders the Editor instance.
Declaration
ShowRoundedCorner()
Specifies to Change the sharped edges into rounded corner for the Editor.
Declaration
public EditorPropertiesBuilder ShowRoundedCorner()
Returns
ShowRoundedCorner(Boolean)
Declaration
public EditorPropertiesBuilder ShowRoundedCorner(bool roundedCorner)
Parameters
Type |
Name |
Description |
System.Boolean |
roundedCorner |
|
Returns
Specifies whether the up and down spin buttons should be displayed in editor.
Declaration
public EditorPropertiesBuilder ShowSpinButton()
Returns
Declaration
public EditorPropertiesBuilder ShowSpinButton(bool showSpinButton)
Parameters
Type |
Name |
Description |
System.Boolean |
showSpinButton |
|
Returns
ToHtmlString()
Represents an HTML-encoded string.
Declaration
public string ToHtmlString()
Returns
Type |
Description |
System.String |
|
ValidateOnType()
Enables decimal separator position validation on type .
Declaration
public EditorPropertiesBuilder ValidateOnType()
Returns
ValidateOnType(Boolean)
Declaration
public EditorPropertiesBuilder ValidateOnType(bool validate)
Parameters
Type |
Name |
Description |
System.Boolean |
validate |
|
Returns
ValidationMessage(Action<EditorValidationMessageBuilder>)
Set the jQuery validation error message in editor.
Declaration
public EditorPropertiesBuilder ValidationMessage(Action<EditorValidationMessageBuilder> validationMessage)
Parameters
Returns
ValidationMessage(Dictionary<String, Object>)
Declaration
public EditorPropertiesBuilder ValidationMessage(Dictionary<string, object> validationMessage)
Parameters
Type |
Name |
Description |
System.Collections.Generic.Dictionary<System.String, System.Object> |
validationMessage |
|
Returns
ValidationRules(Action<EditorValidationRuleBuilder>)
Set the jQuery validation rules to the editor.
Declaration
public EditorPropertiesBuilder ValidationRules(Action<EditorValidationRuleBuilder> validationRule)
Parameters
Returns
ValidationRules(Dictionary<String, Object>)
Declaration
public EditorPropertiesBuilder ValidationRules(Dictionary<string, object> validationRule)
Parameters
Type |
Name |
Description |
System.Collections.Generic.Dictionary<System.String, System.Object> |
validationRule |
|
Returns
Value(Object)
Specifies the value of the editor.
Declaration
public EditorPropertiesBuilder Value(object value)
Parameters
Type |
Name |
Description |
System.Object |
value |
|
Returns
WatermarkText(String)
Specifies the watermark text to editor.
Declaration
public EditorPropertiesBuilder WatermarkText(string waterMarkText)
Parameters
Type |
Name |
Description |
System.String |
waterMarkText |
|
Returns
Width(String)
Specifies the width of the editor.
Declaration
public EditorPropertiesBuilder Width(string width)
Parameters
Type |
Name |
Description |
System.String |
width |
|
Returns
Implements
System.Web.IHtmlString