cambiar las opciones de edición específicamente dataEvents en el formulario de edición jqgrid

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.

preguntado el 30 de enero de 12 a las 19:01

1 Respuestas

Ajuste de dataEvents dentro de beforeShowForm is too late. You should make the changes inside of beforeInitData llamar de vuelta.

If you would need additionally to use different initializations inside of dataInit you can use the simple trick which I described aquí. In the case you just set any variable like inEdit a true or false y dentro de beforeInitData callback and make different actions inside of dataInit depend in the value of inEdit.

contestado el 23 de mayo de 17 a las 14:05

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.