VerticalGridSettings.CellEditorInitialize Property
Enables initializing the cell editors displayed within the VerticalGrid edit cells.
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v24.2.dll
NuGet Package: DevExpress.Web.Mvc5
#Declaration
public ASPxVerticalGridEditorEventHandler CellEditorInitialize { get; set; }
#Property Value
Type | Description |
---|---|
ASPx |
A ASPx |
#Remarks
The CellEditorInitialize event is raised when the VerticalGrid is switched to edit mode and enables you to initialize cell editors.
Note
- Since the Cell
Editor event works correctly only when a request is sent to the server to initialize an editor, this event will not be raised after you start editing a new row in Batch edit mode because in this mode, requests are not sent to the server when an editor is activated.Initialize - The Cell
Editor event affects only the edit mode settings (when editors are visible).Initialize - The Cell
Editor event isn’t raised for edit cells that contain custom editors defined using templates.Initialize - The Cell
Editor event fires only for built-in column editors.Initialize
#Examples
The following example illustrates how to use the CellEditorInitialize event to automatically focus the required column’s editor using the editor’s ASPxWebControl.Focus method (the e.Editor event argument).
settings.CellEditorInitialize = (s, e) => {
if (e.Column.FieldName == "TimeFrom")
{
e.Editor.Focus();
}
};