jQuery UI Widgets Forums Grid JqxGrid , CSV

Tagged: ,

This topic contains 5 replies, has 2 voices, and was last updated by  zack.wd 10 years, 11 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • JqxGrid , CSV #46471

    zack.wd
    Participant

    How do i bind csv file saved in the server(uploaded by user) as a source in the jqxgrid?I tried by giving file path in the url option in the source of JqxGrid but i get the following error : XMLHttpRequest cannot load
    ” file:///D:/wamp/www/Test/upcsv/uploadtest.csv?filterscount=0&groupscount=0&pagenum=0&pagesize=10&recordstartindex=0&recordendindex=18. Cross origin requests are only supported for HTTP. ” ?

    JqxGrid , CSV #46472

    Peter Stoev
    Keymaster

    Hi zack.wd,

    Ajax calls require HTTP so you can perform binding to something which is hosted on a web server and when you start your web app from a web server – like in our online demos.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    JqxGrid , CSV #46629

    zack.wd
    Participant

    Yes,that was my mistake…thanks for helping me….could you give a sample of csv file before it is binded to jqxgrid…documentation only shows the grid with the output for csv although it has samples if JSON/XML?

    JqxGrid , CSV #46631

    Peter Stoev
    Keymaster

    Hi zack.wd,

    You can find the CSV files your in the demos in the download package – demos/sampledata folder.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    JqxGrid , CSV #46635

    zack.wd
    Participant

    Hi Peter,
    Thanks again for that…i have looked through the sample data and when i test with my csv file, i get the following error : “Uncaught TypeError: Cannot read property ‘length’ of undefined”.Where is the problem?

    JqxGrid , CSV #46638

    zack.wd
    Participant

    Hi Peter,
    Got that worked out…i didn’t initialize datafield in the source again,when i imported the csv source.When i did that it worked out….Thnx for the help.

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

You must be logged in to reply to this topic.