JQXMenu Databind with JSON
<p>I am developing an application where I need to fetch the menu items from a text file.
I am new to JQX.
But while displaying the records its showing nothing.</p>

<h1>My Text File(LeftMenu.txt) as below:</h1>

<pre><code>[{
 "text": "Menu1",
                "id": "1",
                    "parentid": "-1"
 }, 

{
 "text": "Menu2",
                "id": "2",
                    "parentid": "-1"
},

{
 "text": "Menu3",
                "id": "3",
                    "parentid": "-1"
 }
]
</code></pre>

<p>==========================================================================</p>

<h1>The code is here under</h1>

<pre><code>// prepare the data for Left Menu
        var urlleftpanel = "../../Public/sampledata/leftmenu.txt";

        var sourceleftmenu =
              {
                  datatype: "json",
                  datafields: [
                               { name: 'id' },
                               { name: 'parentid' },
                               { name: 'text' }
                  ],
                  id: 'id',
                  url: urlleftpanel
              };

        // create data adapter.
        var dataAdapter1 = new $.jqx.dataAdapter(sourceleftmenu);
       // perform Data Binding.
        dataAdapter1.dataBind();        

        var records = dataAdapter1.getRecordsHierarchy('id', 'parentid', 'items', [{   name: 'text', map: 'label' }]);
        var records = da.records;
        $('#jqxWidget').jqxMenu({ source: records , height: 53, theme: theme, width: '95px' });
</code></pre>

<p>=====================================================================================
Please Help its very urgent</p>

<p>Thanks in Advance</p>
