0

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.

user1089109
  • 13
  • 1
  • 4

1 Answers1

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.

Community
  • 1
  • 1
Oleg
  • 220,925
  • 34
  • 403
  • 798