This question is locked. New answers and comments are not allowed.
Hi,
If you load nodes on demand in a tree that has ShowCheckBox(true) then the newly loaded nodes aren't rendered with checkboxes. To fix edit telerik.treeview.js:
If you load nodes on demand in a tree that has ShowCheckBox(true) then the newly loaded nodes aren't rendered with checkboxes. To fix edit telerik.treeview.js:
- Line 250, change:
$t.treeview.getGroupHtml(data, groupHtml, this.isAjax(), $item.hasClass('t-treeview'));
to
$t.treeview.getGroupHtml(data, groupHtml, this.isAjax(), $item.hasClass('t-treeview'), this.showCheckBox);
- Line 492, change:
getGroupHtml:
function(data, html, isAjax, isFirstLevel) {
to
getGroupHtml:
function(data, html, isAjax, isFirstLevel, showCheckBox) {
-
Line 523, change:
if
(this.ShowCheckBox)
to
if
(showCheckBox)
- Line 544, change:
this
.getGroupHtml(item.Items, html, isAjax, false);
to
this
.getGroupHtml(item.Items, html, isAjax, false, showCheckBox);
Cheers,
Kev