PDA

View Full Version : Problem with showing editor fields in EditorGrid



feiichi
30 Apr 2008, 10:52 AM
Hello,
I encountered a problem with EditorGrid. After cell-click it doesn't show any assigned editor fields. The weird thing is that it does show the fields normally after I e.g. reorder rows by clicking the grid header.

I was trying to digg deep into the Ext libraries and trace the creating and showing of the editor fields but I couldn't find any problem. All seemed to work normally, only the fields just don't appear.

I create the editorgridpanel and all related compontents exactly like in a standard not-AIR web application.


Any ideas?

Thank you so much, feiichi

mjlecomte
25 May 2008, 3:32 AM
You might want to post some code (simplified example that reproduces your problem). Are you using extended class or just creating an instance?

feiichi
31 Jul 2008, 7:28 AM
Hi,
better late than never:

To fix this problem I used the following:



grid.getStore().on("load", function(store, records, options) {
var ed = grid.getColumnModel().getCellEditor(2, 0);
ed.render();
});


I only needed the editor in the third cell so I guess you'll have to render the editor "manually" for every other cell. The editor now works correctly in all rows.