コード例 #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
ファイル: ColumnModel.cs プロジェクト: pgodwin/Ext.net
        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));
        }