Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
 /// <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);
 }
Ejemplo n.º 3
0
        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));
        }