javascript - How do I add confirmation to YesNoCheckboxCellEditor in slickgrid? -
i have checkbox field in slickgrid uses yesnocheckboxcelleditor , wants user confirm change. have tried adding vildator:mymethod no success.
my guess have modify function
this.applyvalue = function (item, state) { item[args.column.field] = state; };
in editor. put whatever conditional logic need , apply value if needed.
this.applyvalue = function (item, state) { var applyvalue = (...<your logic goes here>...); if (!!applyvalue){ item[args.column.field] = state; } };
Comments
Post a Comment