jQWidgets Forums

jQuery UI Widgets Forums TreeGrid jqWidget simple code that works in JSFiddle and not in Visual Studio

Tagged: 

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 11 years, 2 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author

  • Marc
    Participant

    [Local versions : jqwidgets-ver3.2.1 / jquery-1.11.0.min.js / Visual Studio 2010 on XP SP3]
    [JSFiddle version : http://jqwidgets.com/public/jqwidgets/jqx-all.js /

    Hi,

    This code works as expected in JSFiddle. It has been copied/cut from Visual Studio (see libraries versions above). Locally, it fails :
    – The treeGrid rendering hangs. The browser’s debugger shows a “Uncaught TypeError: Cannot read property ‘toString’ of undefined” that occurs at jqx-all.js:7.
    – When loading the grid from a database (SQL Server Compact Edition 4) instead of the testData variable, by uncommenting the url attribute, and commenting the localData one out, the data is correctly retrieved. However, the collapse and expand events then don’t get triggered any more.

    I’m aware the reasons may lie outside jqWidget. Maybe a problem with Visual Studio configuration. Or maybe an obvious semi-colon issue that I’d be missing. But I’ve been investigating this now for a couple of days, and can’t see anything. I’m posting here, just in case this would have already been ran through. Or in the event more acute eyes than mine find the error.

    Thank you for any help.

    Best regards.


    Peter Stoev
    Keymaster

    Hi Marc,

    We cannot reproduce an issue with the provided code. The only problem I see is that your DIV tag’s margin-top setting is incorrect.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.