PDA

View Full Version : Get all editors in a GridPanel



dreamcaster
15 Oct 2009, 12:32 AM
Hello guys,

Have you tried to get all the editors in a GridPanel per row? What I'm doing is that when I select something in column A, editor in column B will become disabled. I tried:


myGrid.getColumnModel().columns[0].editor.disable();

However, all the editors in other rows get disabled.

Thanks!

jay@moduscreate.com
15 Oct 2009, 1:41 AM
Are you just trying to prevent the editor from appearing?

Condor
15 Oct 2009, 1:44 AM
That is definitely not the way to do this.

Instead, you need to write an isCellEditable method (example (http://www.extjs.com/forum/showthread.php?p=225729#post225729)).

dreamcaster
15 Oct 2009, 5:09 AM
Thanks! Works great! :-)