Ext JS - Learning Center

Tutorial talk:Some Usefull examples

From Learn About the Ext JavaScript Library

Jump to: navigation, search

Regarding the dynamical editor example.

Wouldn't it be better to use the beforeedit event (so it works if you tab into the field you want to edit)?

listeners: {
	beforeedit: function(e) {
		if (e.grid.getColumnModel().getDataIndex(e.column) == "trigger"){
			if (e.grid.store.getAt(e.row).get('type') == 'custom'){
				e.grid.getColumnModel().setEditor(e.column,date_right_editor);
			} else {
				e.grid.getColumnModel().setEditor(e.column,default_right_editor);
			}
		}
	}
},

--Mattsheppard 03:06, 1 May 2008 (EDT)

  • This page was last modified on 1 May 2008, at 07:06.
  • This page has been accessed 223 times.