This code is driving me insane I have a click event that fires upon a radio button selection. It then executes jquery that should hide the row, however it doesn't. The code is as follow:
document.getElementById("showSubOrgs").addEventListener("click", function () {
ShowSubOrganisations();
});
function HideSubOrganisations() {
var grid = $("#gridOrganizations").data("kendoGrid");
var gridData = grid.dataSource.view();
for (var i = 0; i < gridData.length; i++) {
var currentOrgid = gridData[i]._OrganisationID;
var ParentOrgID = gridData[i]._ParentOrganisationID;
if (currentOrgid != ParentOrgID) {
debugger;
grid.table.find("tr[_OrganisationID='" + currentOrgid + "']").hide();
}
}
};