hello
i am using this ajax call to generate the tree ul in a popup window
$.ajax({
dataType: ‘html’,
url: base_url+’admin/pages/tree’,
cache: false,
data: data,
success: function (data, status, xhr) {
// update command is executed.
//alert(data);
$(“#jqxTree”).html(data);
$(“#dropDownButton”).jqxDropDownButton({width: 150, height: 25, theme: theme});
$(“#jqxTree”).jqxTree({width: 200, theme: theme});
$(‘#jqxTree’).bind(‘select’, function (event) {
var args = event.args;
var item = $(‘#jqxTree’).jqxTree(‘getItem’, args.element);
var dropDownContent = ‘<div style=”position: relative; margin-left: 3px; margin-top: 5px;”>’ + item.label + ‘</div>’;
$(“#dropDownButton”).jqxDropDownButton(‘setContent’, dropDownContent);
});
//alert($(“#jqxTree”).html());
},
error: function (jqXHR, textStatus, errorThrown) {
commit(false);
}
});
when i click to show the popup window for the first time everything is ok
the problem is when i close the popup window and open it again the drop down tree displays the ul as if it is in a normal webpage and not formatted as a tree with arrows to expand and collapse it
i hope you will get what i mean
thank you