PDA

View Full Version : Ext.grid.GridEditor Documentation missing



paladinjack
7 Dec 2007, 2:02 PM
This class seems to be still working in Ext 2.0 but i can't find its documentation anywhere.
Missing documents.

tryanDLS
7 Dec 2007, 2:26 PM
That's b/c it's a private class used internally by the ColumnModel. If you look at the source, you'll see it's nothing but an extension of Editor that defaults some configs.

paladinjack
7 Dec 2007, 4:13 PM
But it's confusing, as the documentation gives the
new Ext.grid.GridEditor()...
so natually i look for this documentation
and got nothing.

tryanDLS
7 Dec 2007, 5:51 PM
Where do you see that in the documentation?

paladinjack
8 Dec 2007, 8:54 AM
Under Propergrid -> CustomEditors

customEditors : Object
An object containing name/value pairs of custom editor type definitions that allow the grid to support additional typ...
An object containing name/value pairs of custom editor type definitions that allow the grid to support additional types of editable fields. By default, the grid supports strongly-typed editing of strings, dates, numbers and booleans using built-in form editors, but any custom type can be supported and associated with a custom input control by specifying a custom editor. The name of the editor type should correspond with the name of the property that will use the editor. Example usage:

var grid = new Ext.grid.PropertyGrid({
...
customEditors: {
'Start Time': new Ext.grid.GridEditor(new Ext.form.TimeField({selectOnFocus:true}))
},
source: {
'Start Time': '10:00 AM'
}
});

tryanDLS
8 Dec 2007, 9:12 AM
Added to the docs bug thread - http://extjs.com/forum/showthread.php?p=96701

paladinjack
8 Dec 2007, 9:20 AM
Thank you very much!

lqjack
15 May 2012, 9:05 PM
can i use the Ext.grid.GridEditor (http://www.sencha.com/forum/showthread.php?20297-Ext.grid.GridEditor-Documentation-missing&p=96606&viewfull=1) in ext 4 ??