Kendo.ui.progress ($ ("# treeid"), true); does not work when selecting node in kendui tree tree

The KendoUI tree view is synchronized with the multi-screen KendoUI, so when I select a node control in the tree view, you select the same element in multi-select. So I have a function in this function that I put kendo.ui.progress($("#treeid"), true); , and after that script to select the same element in multi-select. this is a simple attempt:

 console.log('in ondata'); var id = $(this).attr('id_a'); if (typeof combined != 'undefined') { var selTag = $("input[type='hidden'][id='" + id + "']").attr('selId'); var classId = $("input[type='hidden'][id='" + id + "']").attr('classid'); console.log(classId); kendo.ui.progress($("#"+classId), true); console.log('after progress start...'); } if ($(this).is(':checked')) { console.log('in ckecked..'); $("input[type='checkbox'][name='c_" + id + "']").closest("div").find("span:last").addClass("k-state-selected"); if (typeof combined != 'undefined') { addToMs(classId, selTag, id); } } else { console.log('in ckecked else..'); $("input[type='checkbox'][name='c_" + id + "']").closest( "div").find("span:last").removeClass( "k-state-selected"); if (typeof combined != 'undefined') { removeMs(classId, selTag, id); } } } 
+4
source share
1 answer

Just use http://malsup.com/jquery/block/#dialog
it instead
kendo.ui.progress ($ ("# treeid"), true);

+2
source

Source: https://habr.com/ru/post/1502584/