これは機能的なスタートですが、最後の部分を取得できません...
debugger;
var notificationId,
treeView = $('#treeview').data("kendoTreeView");
for (var i = 0; i < treeView.dataSource.view().length; i++)
{
if (treeView.dataSource.view()[i].checked)
{
if (treeView.dataSource.view()[i].hasChildren)
{
//this check is not working
if (treeView.dataSource.view()[i].children.view()[i].checked)
{
for (var j = 0; j < treeView.dataSource._data[i].notifications.length; j++)
{
notificationId = treeView.dataSource._data[i].notifications[j].ID;
alert('parent notification id: ' + notificationId);
}
}
}
誰かが私にこれを手伝ってもらえますか?