jqTree
jqTree copied to clipboard
tree.dblclick or tree.click event
Hi Marco, I add tree.dblclick event work but my function was call 1st time after that my function not call. When I add alert that alert also work every dblclick event but my function set in between alert not call.
Following Code I add for the call "tree.dblclick":
tree.bind('tree.dblclick', function (event) { alert(event.node.name); CreateGrid(event.node.name); alert("End"); });
function CreateGrid(id) {
$('#list').jqGrid({
url: "/ReportCentre/GetRecords/" + id,
datatype: 'json',
mtype: 'GET',
sortable: true,
colNames: ['Format Code', 'Description', 'Parent Form'],
colModel: [{ name: 'Format Code', index: 'Format Code' },
{ name: 'Description', index: 'Description' },
{ name: 'Parent Form', index: 'Parent Form' } ],
pager: $('#pager'),
rowNum: 100,
rowList: [100, 200, 300],
sortname: 'Code',
height: 400,
sortorder: 'asc',
gridview: true,
viewrecords: true,
shrinkToFit: true,
width: 650,
onSelectRow: function (rowid, status, e) {
alert(rowid);
}
});
jQuery("#list").jqGrid('navGrid', "#pager",
{ edit: false, add: false, del: false, search: false, refresh: false });
};
So please help me for this issue.
Thanks, Chetan
Sorry this issue not from JQTree its my mistake $("#list").GridUnload(); above code not added in my js file thats why that is not work
Sorry once again.