Пример #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));
        }
Пример #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);
 }
Пример #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));
        }