I just want to continue this topic:
http://www.jeasyui.com/forum/index.php?topic=5275.0This example works fine
$('#test').combotree({
multiple: true,
onlyLeafCheck:true,
onLoadSuccess: function(node,data){
var values = $('#test').combotree('getValues');
alert(JSON.stringify(values));
}
});But if I change
$('#test').combotree('getValues') to
$(this).combotree('getValues')I get error:
TypeError: $.data(...) is undefined .... jquery.easyui.min.js:12401:9 (for 1.4.3)
At the same time if I change this line to
$(this).tree('getChecked')
or
$(this).tree('getSelected')
then it works, but works only in case if elements are loaded. In case if element is still selected after 'reload' call but not loaded I get [] what is wrong.