/// <summary> /// Sets the form field to be used for editing. Note: This method only has an implementation if an Editing plugin has been enabled on the grid. /// </summary> /// <param name="editor">An object representing a field to be created. If no xtype is specified a 'textfield' is assumed.</param> public virtual void SetEditor(Field editor) { this.Call("setEditor", new JRawValue(editor.ToConfig(LazyMode.Config))); }
public virtual void SetEditor(int columnIndex, Field editor, GridEditorOptions options) { if (options == null || options.IsDefault) { this.SetEditor(columnIndex, editor); return; } string editorCfg = "new Ext.grid.GridEditor(Ext.apply({{field:{0}}}, {1}))".FormatWith(editor.ToConfig(), options.Serialize()); this.CallColumnModel("setEditor", columnIndex, new JRawValue(editorCfg)); }
public virtual void SetEditor(int columnIndex, Field editor) { this.CallColumnModel("setEditor", columnIndex, new JRawValue(editor.ToConfig(LazyMode.Instance))); }