My colmodel, has a column name’count’ and a editoptions dataEvent that alerts a change.
In the add form i want to remove this alert and need this alert only in the edit mode..
So, i tried a couple of things in the add form beforeshowform(),using setColProp and .attr
But nothing seems to work.. any help greatly appreciated.
My colmodel, has a column name’count’ and a editoptions dataEvent that alerts a change.
Share
Setting of dataEvents inside of beforeShowForm is too late. You should make the changes inside of
beforeInitDatacallback.If you would need additionally to use different initializations inside of
dataInityou can use the simple trick which I described here. In the case you just set any variable likeinEdittotrueorfalseand inside ofbeforeInitDatacallback and make different actions inside ofdataInitdepend in the value ofinEdit.