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)); }
/// <summary> /// Sets the editor for a column. /// </summary> public virtual ColumnModel.Builder SetEditor(int columnIndex, Field editor, GridEditorOptions options) { this.ToComponent().SetEditor(columnIndex, editor, options); return(this); }