I proposed the drag/drop and they didn’t like that solution.
I was able to make it work by saving the items unique ID in a hidden “selected_item_id” field, and then:
function update_item_tree() {
var item_tree_dataAdapter = new $.jqx.dataAdapter(item_tree_source);
item_tree_dataAdapter.dataBind();
var item_tree_records = item_tree_dataAdapter.getRecordsHierarchy('id', 'parentid', 'items', [{name:'text', map: 'label'}]);
$('#item_tree').jqxTree({ source: item_tree_records, height: '540px', width: '200px'});
$('#item_tree').jqxTree('expandItem',$("#"+$('#selected_item_id').val())[0]);
$('#item_tree').jqxTree('selectItem',$("#"+$('#selected_item_id').val())[0]);
};
I can use this function when they update the year and when they update the item name (used as the label).
-jon