jQuery UI Widgets › Forums › TreeGrid › Unable to get property 'host' of undefined or null reference
Tagged: jqxTreeGrid
This topic contains 4 replies, has 2 voices, and was last updated by Krull 7 years, 12 months ago.
-
Author
-
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
PS also if I go back a version of jqwidgets it works fine…but doing that breaks other parts because we are using some of the new features only provided in the current version or well 5.5.0 anyway.
Hello Krullm
Have you taken a look at jqxDataAdapter?
It is the widget that transfers information from one source to another.Best Regards,
StanislavjQWidgets Team
http://www.jqwidgets.com/Yes sir I did in fact I used it here.
Are you seeing something I did wrong with it?
Anyway I ended up commenting out this line in jqxtreegrid.js
a.jqx.utilities.setTheme(c,k,f.base.host);
Now it works great. Please tell me if possible why this is causing a problem. I have a temporary solution but I don’t like modifying your code because it just feels wrong ….LOL. 🙂
P.S. I am not complaining. I am so pleased with the widgets! You guys rock! I don’t know why everyone is not using them … ha their loss… We use them exclusively and love them! Have a blessed day bro.
-
AuthorPosts
You must be logged in to reply to this topic.