-
3 May 2012 6:54 AM #1Ext JS Premium Member
- Join Date
- Nov 2010
- Location
- Dillenburg, Hessen, Germany
- Posts
- 35
- Vote Rating
- 0
Wrong getEditor() call in RowModel.
Wrong getEditor() call in RowModel.
REQUIRED INFORMATIONExt version tested:- Ext 4.1.0 RC3
- Chrome 18
The Ext.selection.RowModel#onEditorTab calles getEditor without parameter. As in the documentation in Ext.grid.colum.Column#getEditor there should be the record and the default field.
Test Case:
In our own column i need the record for my column editor and since ExtJS 4.1.0 RC2 i don't get the editor on TABing into the column editor.
HELPFUL INFORMATION
Debugging already done:- Wrong getEditor() call in RowModel.
Possible fix:- think the solution should be a while like this
- Code:
while(position && !view.headerCt.getHeaderAtIndex(position.column).getEditor(record, header));
Additional CSS used:- only default ext-all.css
-
3 May 2012 8:49 AM #2
Have you tried 4.1 GA (final)?
Regards,
Scott.
-
3 May 2012 9:42 AM #3Ext JS Premium Member
- Join Date
- Nov 2010
- Location
- Dillenburg, Hessen, Germany
- Posts
- 35
- Vote Rating
- 0
now i did it, but it's still not working - well
Ext.selection.RowModel#onEditorTab is caling getEditor without any parameter so the but for me still has to be there
-
8 May 2012 4:13 AM #4Ext JS Premium Member
- Join Date
- Nov 2010
- Location
- Dillenburg, Hessen, Germany
- Posts
- 35
- Vote Rating
- 0
will this be a bug in next time or can't i assume the parameter for getEditor in my own column as they are documented?
-
3 Jul 2012 7:45 AM #5
-
3 Jul 2012 11:36 PM #6Ext JS Premium Member
- Join Date
- Nov 2010
- Location
- Dillenburg, Hessen, Germany
- Posts
- 35
- Vote Rating
- 0
also not fixed in EXT 4.1.1 RC2
seems to me like sencha sees no need to fix that
maybe it's helpful to write a line where this makes problems:
if you write your own colum with a special editor that needs the record, i see the only way in implementing the getEditor in the column and give the selected record to the editor instance.
but in the case you edit the grid by switching columns with TAB, you don't get the record. so you cant update the editor that is depending on some current values of the record.
-
4 Jul 2012 12:35 AM #7
Workaround for this problem
Workaround for this problem
Code:if (record == undefined) record = ext.getCmp("my_grid").plugins[0].getActiveRecord();Yaron Yogev
IT Software Developer
Success! Looks like we've fixed this one. According to our records the fix was applied for
EXTJSIV-6724
in
4.1.2.


Reply With Quote
