title: jqxwidgets tree id
body: <p>I am working with jqxwidgets and am trying to get the li id in the tree to be the id for the item I am passing via json. Currently the id for an item is something like: treeItem9905728103457950000</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  
  var url = "university/list"
  var data = jQuery.parseJSON(
      jQuery.ajax({
          url: url, 
          async: false,
          dataType: 'json'
      }).responseText
  );
  var builddata = function () {
  var source = [];
  var items = [];
  // build hierarchical source.
  for (i = 0; i &lt; data.length; i++) {
      var item = data[i];
      var label = item["text"];
      var parentid = item["parentid"];
      var id = item["id"];
  
      if (items[parentid]) {
          var item = { parentid: parentid, label: label, item: item };
          if (!items[parentid].items) {
              items[parentid].items = [];
          }
          items[parentid].items[items[parentid].items.length] = item;
          items[id] = item;
      }
      else {
          items[id] = { parentid: parentid, label: label, item: item };
          source[id] = items[id];
      }
  }
  return source;
  }
  
  var source = builddata();
  // create jqxTree
  $('#jqxTree').jqxTree({ source: source, width: '300px' });
  $('#jqxTree').bind('select', function (event) {
          $("#west-container").html("&lt;div style='margin: 10px;'&gt;" +     event.args.element.id + "&lt;/div&gt;");
  });
  </code></pre>
  
  <p></p>