Class InPlaceEditor
Inheritance
Namespace: Syncfusion.EJ2.InPlaceEditor
Assembly: Syncfusion.EJ2.dll
Syntax
public class InPlaceEditor : EJTagHelper
Constructors
InPlaceEditor()
Declaration
public InPlaceEditor()
Properties
ActionBegin
The event will be fired before the data submitted to the server.
Declaration
public string ActionBegin { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
ActionFailure
The event will be fired when data submission failed.
Declaration
public string ActionFailure { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
ActionOnBlur
Specifies the action to be perform when user clicks outside the container, that is focus out of editable content. The possible options are,
Declaration
public ActionBlur ActionOnBlur { get; set; }
Property Value
Type | Description |
---|---|
ActionBlur | The default value is ActionBlur.Submit |
ActionSuccess
The event will be fired when data submitted successfully to the server.
Declaration
public string ActionSuccess { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
Adaptor
Specifies the adaptor type that are used DataManager to communicate with DataSource. The possible values are,
Declaration
public AdaptorType Adaptor { get; set; }
Property Value
Type | Description |
---|---|
AdaptorType | The default value is AdaptorType.UrlAdaptor |
BeforeSanitizeHtml
Event triggers before sanitize the value.
Declaration
public string BeforeSanitizeHtml { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
BeginEdit
The event will be fired before changing the mode from default to edit mode.
Declaration
public string BeginEdit { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
CancelButton
Used to customize the "Cancel" button UI appearance by defining Button model configuration.
Declaration
public object CancelButton { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The default value is null |
CancelClick
Event triggers when click the cancel button.
Declaration
public string CancelClick { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
Change
The event will be fired when the integrated component value has changed that render based on the type
property
in the In-place editor.
Declaration
public string Change { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
Created
The event will be fired once the component rendering is completed.
Declaration
public string Created { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
CssClass
Defines single/multiple classes (separated by space) to be used for customization of In-place editor.
Declaration
public string CssClass { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "" |
Destroyed
The event will be fired when the component gets destroyed.
Declaration
public string Destroyed { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
Disabled
Specifies whether to enable editing mode or not.
Declaration
public bool Disabled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is false |
EditableOn
Specifies the event action of input to enter edit mode instead of using edit icon. The possible values are:
Declaration
public EditableType EditableOn { get; set; }
Property Value
Type | Description |
---|---|
EditableType | The default value is EditableType.Click |
EmptyText
Sets the text to be shown when an element has 'Empty' value.
Declaration
public string EmptyText { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "Empty" |
EnableEditMode
Specifies to show/hide the editing mode.
Declaration
public bool EnableEditMode { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is false |
EnableHtmlParse
It enables or disables the parsing of HTML string content into HTML DOM elements for In-place Editor. If the value of the property is set to false, the In-place Editor value will be displayed as HTML string instead of HTML DOM elements.
Declaration
public bool EnableHtmlParse { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is true |
EnableHtmlSanitizer
Defines whether to allow the cross-scripting site or not.
Declaration
public bool EnableHtmlSanitizer { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is true |
EnablePersistence
Enable or disable persisting component's state between page reloads. If enabled, following list of states will be persisted.
- value
Declaration
public bool EnablePersistence { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is false |
EnableRtl
Enable or disable rendering component in right to left direction.
Declaration
public bool EnableRtl { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is false |
EndEdit
The event will be fired when the edit action is finished and begin to submit/cancel the current value.
Declaration
public string EndEdit { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
HtmlAttributes
Allows additional HTML attributes such as title, name, etc., and accepts n number of attributes in a key-value pair format.
Declaration
public object HtmlAttributes { get; set; }
Property Value
Type |
---|
System.Object |
Locale
Overrides the global culture and localization value for this component. Default global culture is 'en-US'.
Declaration
public string Locale { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "" |
Mode
Specifies the mode to be render while editing. The possible modes are :
Declaration
public RenderMode Mode { get; set; }
Property Value
Type | Description |
---|---|
RenderMode | The default value is RenderMode.Popup |
Model
Specifies the model object configuration for the integrated components like AutoComplete, DatePicker,NumericTextBox, etc.
Declaration
public object Model { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The default value is null |
Name
Specifies the name of the field which is used to map data to the server. If name is not given, then component ID is taken as mapping field name.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "" |
PopupSettings
Specifies the object to customize popup display settings like positions, animation etc.
Declaration
public InPlaceEditorPopupSettings PopupSettings { get; set; }
Property Value
Type | Description |
---|---|
InPlaceEditorPopupSettings | The default value is null |
PrimaryKey
Defines the unique primary key of editable field which can be used for saving data in data-base.
Declaration
public string PrimaryKey { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "" |
SaveButton
Used to customize the "Save" button UI appearance by defining Button model configuration.
Declaration
public object SaveButton { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The default value is null |
ShowButtons
Used to show/hide the ok/cancel buttons of In-place editor.
Declaration
public bool ShowButtons { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is true |
SubmitClick
Event triggers when click the submit button.
Declaration
public string SubmitClick { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
SubmitOnEnter
Sets to trigger the submit action with enter key pressing of input.
Declaration
public bool SubmitOnEnter { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is true |
Template
Specifies the HTML element ID as a string that can be added as a editable field.
Declaration
public string Template { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "" |
TextOption
Specifies the option to be set on initial rendering. It is applicable for DropDownList, AutoComplete, ComboBox, and MultiSelect component types. The possible options are:
Declaration
public TextOptionType TextOption { get; set; }
Property Value
Type | Description |
---|---|
TextOptionType | The default value is TextOptionType.Never |
Type
Specifies the type of components that integrated with In-place editor to make it as editable.
Declaration
public InputType Type { get; set; }
Property Value
Type | Description |
---|---|
InputType | The default value is InputType.Text |
Url
Gets the url for server submit action.
Declaration
public string Url { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "" |
Validating
The event will be fired while validating current value.
Declaration
public string Validating { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
ValidationRules
Maps the validation rules for the input.
Declaration
public object ValidationRules { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The default value is null |
Value
Specifies the display value for input when original input value is empty.
Declaration
public object Value { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The default value is null |