jQWidgets Forums

jQuery UI Widgets Forums Grid Grid State object column data is chopped off after 5 columns

Tagged: 

This topic contains 4 replies, has 2 voices, and was last updated by  mou_will 12 years ago.

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

  • mou_will
    Member

    Hi,

    we are using jqwidgets version 2.8.3. The grid has 11 columns in it. When I invoke ‘saveState’ or ‘getState’ I get a state object with the first 5 columns of data and the last column which is a checkbox selection. The same happens even when we are trying to export the data. The middle 5 columns of data are simply missing. I cannot point anything very different for the column types defined. My questions are

    1) Did anyone see anything like this happen to them before.
    2) If a previous known issue, what version would fix this issue and what would be the dependent jquery version to be used.

    thank you in advance,
    Will


    Peter Stoev
    Keymaster

    Hi Will,

    We have never experienced such behavior. Would you please provide a sample(Web Page with HTML + JS) which illustrates the described behavior? Btw. The Grid does not have ‘saveState’ and ‘getState’ methods. The names of the methods are ‘savestate’ and ‘getstate’.

    Best Regards,
    Peter Stoev

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


    mou_will
    Member

    Hi Peter,

    Thanks for the prompt reply. I will try providing such a sample.
    I can see the data in the columns when i try to loop through and prit out information about each column using
    for(var i =0; i< $("#jqxgrid").jqxGrid('columns').records.length; i++) {
    var tmp = $("#jqxgrid").jqxGrid('columns').records[i];
    alert(i+"column "+ tmp.text);
    }

    Regarding the case of the method names, I just typed it wrong here in the post. In the actual code they are

    var state = $("#jqxgrid").jqxGrid('savestate');
    $("#jqxgrid").jqxGrid('loadstate', state);

    thank you,
    Will.


    Peter Stoev
    Keymaster

    Hi Will,

    The “$(“#jqxgrid”).jqxGrid(‘columns’).records” is for internal usage only and is part of the Grid’s internal API. Despite of that fact, $(“#jqxgrid”).jqxGrid(‘columns’).records returns the Columns set to the Grid during its initialization. Loading of State with Additional columns will not append new columns to the Grid.

    Best Regards,
    Peter Stoev

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


    mou_will
    Member

    I have corrected my issues Peter. I at some point replaced datafield for the columns definition as displayfield and hence the state was not capturing the information properly. Wanted to post it here for future for help for anybody else.

    thank you for the help.

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

You must be logged in to reply to this topic.