Hi.
I have a treeview which I implemented with checkchildren set to true, but causes IE8 to show a message about a long running script when there is over 100 nodes.
I therefore tried to implement my own functionality using jquery. I managed to check/uncheck children based on parent with the code:
This seems faster then the built in functionality. What i need now is a way to uncheck parents if one child is unchecked and check parents if all children is checked.
Does anyone have a sample code for this? Or a tips on how I can get the built in functionality to work better with IE8?
I have a treeview which I implemented with checkchildren set to true, but causes IE8 to show a message about a long running script when there is over 100 nodes.
I therefore tried to implement my own functionality using jquery. I managed to check/uncheck children based on parent with the code:
function
onTreeDataBound () {
$(
"input:checkbox[name=checkedNodes]"
).on(
'click'
,
function
() {
var
checkedStatus = $(
this
).is(
':checked'
);
$(
this
).closest(
".k-item"
).find(
".k-group .k-item input:checkbox[name=checkedNodes]"
).each(
function
() {
$(
this
).attr(
'checked'
, checkedStatus);
});
});
}
Does anyone have a sample code for this? Or a tips on how I can get the built in functionality to work better with IE8?