Hey,
My Code:
$(document).on(“rowUncheck”, “#divEmployeeTreeGrid”, function (event) {
debugger
var args = event.args;
var row = args.row;
uncheck(a);
serchCriteriaEmployeeTreeArray.pop(row.EmployeeCode);
});
function uncheck(a) {
debugger
for (var i = 0; i < a.length; i++) {
$(“#divEmployeeTreeGrid”).jqxTreeGrid(‘uncheckRow’, a[i].EmployeeCode);
}
}
problem:
When First time uncheck function is call its uncheck but after that this event will call $(document).on(“rowUncheck”, “#divEmployeeTreeGrid”, function (event) and again uncheck function will call and a[i].EmployeeCode will remain same so uncheck will work only one time so parent and its only 1st child wil uncheck and uncheck will not work properly.
please suggest what should i do for uncheck by existing array.
Regards,
Alien K.