Full
error to post with code snippet:
Unhandled exception at line 53, column 10735 in http://cdn.kendostatic.com/2015.1.429/js/kendo.all.min.js
0x800a138f - JavaScript runtime error: Unable to get property 'loaded' of undefined or null reference
kendo.all.min.js method throwing error: var i=e.loaded()
Code Snippet: error is thrown when line 12 is called: treelist.expand(row[i]); TreeList has over 24 rows with child rows of data.
TreeListCollapseExpandChildRows: function(treeListName, expandType, direction)
{
var treelist = $('#' + treeListName).data('kendoTreeList');
// single row...
if (expandType == "single")
{
var row = treelist.content.find('tr.k-treelist-group');
for (var i = 0; i < row.length; i++) {
switch (direction)
{
case "expand":
treelist.expand(row[i]);
break;
case "collapse":
treelist.collapse(row[i]);
break;
}
}
}
else
{
// all rows and all their nested subrows ...
var rows = treelist.content.find('tr.k-treelist-group', treelist.tbody);
$.each(rows, function (idx, row) {
switch (direction) {
case "expand":
treelist.expand(row);
break;
case "collapse":
treelist.collapse(row);
break;
}
});
}
}
Unhandled exception at line 53, column 10735 in http://cdn.kendostatic.com/2015.1.429/js/kendo.all.min.js
0x800a138f - JavaScript runtime error: Unable to get property 'loaded' of undefined or null reference
kendo.all.min.js method throwing error: var i=e.loaded()
Code Snippet: error is thrown when line 12 is called: treelist.expand(row[i]); TreeList has over 24 rows with child rows of data.
TreeListCollapseExpandChildRows: function(treeListName, expandType, direction)
{
var treelist = $('#' + treeListName).data('kendoTreeList');
// single row...
if (expandType == "single")
{
var row = treelist.content.find('tr.k-treelist-group');
for (var i = 0; i < row.length; i++) {
switch (direction)
{
case "expand":
treelist.expand(row[i]);
break;
case "collapse":
treelist.collapse(row[i]);
break;
}
}
}
else
{
// all rows and all their nested subrows ...
var rows = treelist.content.find('tr.k-treelist-group', treelist.tbody);
$.each(rows, function (idx, row) {
switch (direction) {
case "expand":
treelist.expand(row);
break;
case "collapse":
treelist.collapse(row);
break;
}
});
}
}