Edit
The Edit component is a multiline input field where user can enter different types of textual content.
Contents
Usage
Prevent Enter from Submitting the Form
When you hit the Enter key and the focus is on the Edit control, the form page is submited by default. You can prevent this behavior associating the following code to the client-side OnKeyPress event of the control:
if(event.keyCode == 13)
{
return false;
}
Client-side Features
The component generates the following client-side DOM elements:
- Wrapper (HTMLDivElement). Access it with
$("#ComponentName_outer").get()[0]
.- Main element (HTMLInputElement). Access it with:
$("#ComponentName").get()[0]
.
- Main element (HTMLInputElement). Access it with:
Client-side Events
This component inherits the following client-side events:
- From CustomEdit: OnSelect.
- From Control: OnBlur, OnChange, OnClick, OnDblClick, OnDragOver, OnDragStart, OnFocus, OnKeyDown, OnKeyPress, OnKeyUp, OnMosueDown, OnMouseMove, OnMouseOut, OnMouseOver, OnMouseUp.
Server-side Features
Properties
In addition to its own properties (documented below), this component also inherits the following properties:
- From CustomEdit: CharCase, DataField, DataList, DataSource, FilterInput, MaxLength, Pattern, PlaceHolder, ReadOnly, Required, TabOrder, TabStop, Text.
- From Control: BorderRadius, BoxShadow, Cached, Color, Cursor, Enabled, Font, Gradient, Height, Hint, Layer, Left, ParentColor, ParentFont, ParentShowHint, ShowHint, Style, textShadow, Top, Transform, Visible, Width.
- From Component: Name, Tag.
InputType
The type of input the Edit control expects. The possible values are:
- ceEmail. An email address input.
- cePassword. A password input.
- ceSearch. Search terms input.}}
- ceTelephone. A telephone number input.
- ceText. A textual input (default).
- ceURL. An URL input.
Server-side Events
This component inherits the following server-side events:
- From CustomEdit: OnClick, OnDblClick, OnSubmit.
- From Control: OnAfterShow, OnBeforeShow, OnShow.
Inheritance
- Parent: CustomEdit.
- Children: CustomMEdit.