Esempio n. 1
0
 /// <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)));
 }
Esempio n. 2
0
 /// <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)));
 }
Esempio 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));
        }
Esempio n. 4
0
 public virtual void SetEditor(int columnIndex, Field editor)
 {
     this.CallColumnModel("setEditor", columnIndex, new JRawValue(editor.ToConfig(LazyMode.Instance)));
 }
Esempio n. 5
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));
        }
Esempio n. 6
0
 public virtual void SetEditor(int columnIndex, Field editor)
 {
     this.CallColumnModel("setEditor", columnIndex, new JRawValue(editor.ToConfig(LazyMode.Instance)));
 }