This question is locked. New answers and comments are not allowed.
I am tring to loop through the checked items in my treeview and I need to know if the node is a parent or not. This is on an image button click, not through a client event on the treeview. I have tried every combination that I think might work to no avail This is rather urgent and your help is very much appreciated! Here is my javascript function:
Thank you,
Donna
function removeUsersFromGroups() { var grouptreeview = $('#UserGroupNames').data('tTreeView'); var groupCheckedNodes = $('#UserGroupNames :checked').closest('.t-item'); var groupsAndUsers = new Array(); var grpUserKeys; var grpKey; $.each(groupCheckedNodes, function (node) { if (node.Parent() == null) { grpKey = grouptreeview.getitemValue(node); } else { grpUserKeys = { 'userKey': grouptreeview.getItemValue(node), 'groupKey': grpKey } groupsAndUsers.push(grpUserKeys); } }); $.post("/User/RemoveUsersFromGroups", $.toJSON(groupsAndUsers), null, 'json'); } Thank you,
Donna