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.
Asked
Active
Viewed 2,865 times
1 Answers
2
Setting of dataEvents inside of beforeShowForm is too late. You should make the changes inside of beforeInitData
callback.
If you would need additionally to use different initializations inside of dataInit
you can use the simple trick which I described here. In the case you just set any variable like inEdit
to true
or false
and inside of beforeInitData
callback and make different actions inside of dataInit
depend in the value of inEdit
.