jQuery UI Widgets Forums Grid loadstate method object parameter format crash

This topic contains 2 replies, has 2 voices, and was last updated by  contreforme 6 years, 5 months ago.

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

  • contreforme
    Participant

    Hello,

    I store object string in a table to save multiple jqxGrid states (through JSON.stringify), then when I try to import it in loadstate method (through JSON.parse) it crashes.

    I have narrowed the problem to the object format, object with all values between quotes (int_key:”600″, float_key:”10.33″, bool_key:”false”) will crash the method during (_calculatevirtualheight@[…]/__js/bower_components/jqwidgets/jqwidgets/jqxgrid.js:8:27814) process, while object without quotes on numerical/float and bool values will be parsed correctly.

    Object { width: "100%", height: "600", pagenum: "0", pagesize: "10", … } : will crash
    Object { width: "100%", height: 600, pagenum: 0, pagesize: 10, … } : will succeed

    Any idea on wether A) update method to accept any type of value in object or B) know a method that will return an object with correct datatypes instead of JSON.parse ?

    • This topic was modified 6 years, 5 months ago by  contreforme.

    Hristo
    Participant

    Hello contreforme,

    Thank you for the interest and for the example.
    There is no another slightly way to add these settings.

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com


    contreforme
    Participant

    Ok, thanks. I have managed to get the object with “clean” datatypes.

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

You must be logged in to reply to this topic.