I have a simple dropdown with two values.Lets say Staus:active and inactive. During the onchange event, I want to perfrom some validation and revert back if the validation fails. Thai is if I change from active-inactive and my validation fails, I should change the dropdown back to active. So far I am able to catch the on change event through the dataevents options of editOptions. Below is my code, Thanks for the assist.
editoptions:{value:{Y:'Active',N:'Inactive'}, dataEvents:[
                             {
                                 type: 'change',
                                 fn: function(e) {
                                 alert("inside change trigger");
                                 $grid.setColProp('Status', { editoptions:{value:{Y:'Active',N:'Inactive'}}});
                                 }
                              }
                         ]}
I also read I have to set recreate form :true. I tried that also.