jQWidgets Forums

jQuery UI Widgets Forums Grid Want to save a object in the Grid cell

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

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

  • shashank02
    Participant

    Hi everyone,
    I wanted to save a javaScript object in a column cell, by “setcellvalue” i am able to set and get the Object in to a cell. But the problem is when i am binding the data to the cell the data contains sub-objects, so i wanted to place the object is to the cell, but while reading the cell data it is getting “[object object]” as a string.

    So how can i bind the object in to the cell and get it as object(not “[object object]”)?


    Peter Stoev
    Keymaster

    Hi shashank02,

    It’s not possible to save object within cell. Cells displays String, Number, Date or Boolean data. You have to think about other approach like storing such information in custom associative arrays.

    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.