I am trying to pass data from a list box to a treegrid and getting an error. Has anyone seen this before. Here is the code removed from the app
function createCourseReview()
{
var courses = $(‘#course-list’).jqxListBox(‘getItems’);
var source =
{
dataType: “array”,
dataFields:[
{name:”label”, type:”string”}
],
localdata: courses
};
var dataAdapter = new $.jqx.dataAdapter(source);
$(‘#confirmation-courses’).jqxTreeGrid(
{
theme: ‘LMSDash’,
source: dataAdapter,
columns: [ { text: ‘Courses’, dataField: ‘label’ } ]
});
$(‘#confirmation-courses’).jqxTreeGrid(‘refresh’);
}
The error is as follows : Unable to get property ‘host’ of undefined or null reference – jqxtreegrid.js (7,20880)
Please help I am stuck…lol