Ext.NET
5.3.0
.NET Component Framework for Enterprise Level Apps
|
Properties | |
virtual ComponentListener?? | BeforeEdit [get] |
Fires before cell editing is triggered. Return false from event handler to stop the editing. More... | |
virtual ComponentListener?? | CancelEdit [get] |
Fires when the user started editing a cell but then cancelled the edit. More... | |
virtual ComponentListener?? | Edit [get] |
Fires after a cell is edited. More... | |
virtual ComponentListener?? | ValidateEdit [get] |
Fires after a cell is edited, but before the value is set in the record. Return false to cancel the change. More... | |
override ConfigOptionsCollection | ConfigOptions [get] |
Properties inherited from Ext.Net.BaseItem | |
virtual string | InstanceOf [get] |
ItemState | State [get] |
virtual DefaultValueMode | DefaultValueMode [get, set] |
virtual bool | DesignMode [get] |
bool | AutoDataBind [get, set] |
ResourceManager | ResourceManager [get] |
virtual Control | Owner [get, set] |
The Owner Control for this Listener. More... | |
virtual bool | IsDefault [get] |
Does this object currently represent it's default state. More... | |
bool | IsTrackingViewState [get] |
EventHandlerList | Events [get] |
EventHandler | DataBinding |
Control?? | BindingContainer [get] |
virtual ConfigItemCollection?? | CustomConfig [get] |
Collection of custom js config More... | |
virtual ConfigOptionsCollection | ConfigOptions [get] |
virtual ConfigOptionsExtraction | ConfigOptionsExtraction [get] |
System.Web.Mvc.HtmlHelper?? | HtmlHelper [get, set] |
Properties inherited from Ext.Net.IXObject | |
ConfigOptionsCollection | ConfigOptions [get] |
ConfigOptionsExtraction | ConfigOptionsExtraction [get] |
DefaultValueMode | DefaultValueMode [get, set] |
Additional Inherited Members | |
Public Member Functions inherited from Ext.Net.ComponentListeners | |
virtual void | ClearListeners () |
Public Member Functions inherited from Ext.Net.BaseItem | |
virtual bool | HasExplicitValue (string name) |
void | EnsureDataBind () |
virtual void | Call (string name) |
virtual void | Call (string name, params object[] args) |
virtual void | AddScript (string script) |
virtual void | AddScript (string script, params object[] args) |
virtual bool | IsEmptyObject () |
T | Apply< T > (IApply config) |
BaseItem | Apply (object config) |
virtual void | LoadViewState (object state) |
virtual object | SaveViewState () |
virtual void | TrackViewState () |
void | SetDirty () |
virtual void | DataBind () |
virtual IControlBuilder | ToNativeBuilder () |
Protected Member Functions inherited from Ext.Net.BaseItem | |
BaseItem (Control owner) | |
BaseItem () | |
virtual void | OwnerUpdate (Control owner) |
virtual void | OnDataBinding (EventArgs e) |
|
get |
Fires before cell editing is triggered. Return false from event handler to stop the editing.
The edit event object has the following properties: grid - The grid record - The record being edited field - The field name being edited value - The value for the field being edited. row - The grid table row column - The grid Column defining the column that is being edited. rowIdx - The row index that is being edited colIdx - The column index that is being edited cancel - Set this to true to cancel the edit or return false from your handler.
Parameters item : Ext.grid.plugin.Editing e : Object An edit event (see above for description)
|
get |
Fires when the user started editing a cell but then cancelled the edit.
The edit event object has the following properties: grid - The grid record - The record being edited field - The field name being edited value - The value for the field being edited. originalValue - The original value for the field, before the edit. row - The grid table row column - The grid Column defining the column that is being edited. rowIdx - The row index that is being edited colIdx - The column index that is being edited
Parameters item : Ext.grid.plugin.Editing e : Object An edit event (see above for description)
|
get |
|
get |
Fires after a cell is edited.
The edit event object has the following properties: grid - The grid record - The record being edited field - The field name being edited value - The value for the field being edited. originalValue - The original value for the field, before the edit. row - The grid table row column - The grid Column defining the column that is being edited. rowIdx - The row index that is being edited colIdx - The column index that is being edited
Parameters item : Ext.grid.plugin.Editing e : Object An edit event (see above for description)
|
get |
Fires after a cell is edited, but before the value is set in the record. Return false to cancel the change.
The edit event object has the following properties: grid - The grid record - The record being edited field - The field name being edited value - The value for the field being edited. originalValue - The original value for the field, before the edit. row - The grid table row column - The grid Column defining the column that is being edited. rowIdx - The row index that is being edited colIdx - The column index that is being edited cancel - Set this to true to cancel the edit or return false from your handler.
Usage example showing how to remove the red triangle (dirty record indicator) from some records (not all). By observing the grid's validateedit event, it can be cancelled if the edit occurs on a targeted row (for example) and then setting the field's new value in the Record directly:
grid.on('validateedit', function(ed, e) { var myTargetRow = 6;
if (e.row == myTargetRow) { e.cancel = true; e.record.data[e.field] = e.value; } });
Parameters item : Ext.grid.plugin.Editing e : Object An edit event (see above for description)