jaya

Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • in reply to: saveState & loadState with Bootstrap & Multiselect #125097
    jaya
    Participant

    Hi,

    1. I tried the latest version with the bug fix for checkboxes after loadState. That bug has been fixed, but I see a new bug now. If I click on the row, the row is selected (i.e. background color is green). But if I click on the checkbox, it is marked as checked, but the row is not highlighted green. It is not selected because the “Get Selected Rows” function returns nothing.
    2. First select all rows, then saveState, then deselect all, then loadState, it correctly loads all rows as selected. But the “Select All” checkbox in the header is not marked as checked.
    3. The javascript error I’m getting is happening when I load json data. If I load local data, then I don’t get the error. I think it is happening in the ajax call, but I can’t figure out why ts.p is undefined during the loadState

    thanks
    Jay

    in reply to: saveState & loadState with Bootstrap & Multiselect #125096
    jaya
    Participant

    Thanks for the help. I was able to resolve most issues, but still getting a javascript error when I try to load state using: window.onload = function() { if ($.jgrid.isGridInStorage(“jqGrid”)) { $.jgrid.loadState(“jqGrid”); } }
    Error message says: TypeError: ts.p is undefined : if ($.isFunction(ts.p.beforeProcessing)) { in jquery.jqGrid.js (line 2568, col 1)

    in reply to: saveState & loadState with Bootstrap & Multiselect #125087
    jaya
    Participant

    Hi,

    I was able to make some progress.

    1. With jquery, I can find the id’s of the selected rows, and use prop(‘checked’,true) to mark the checkboxes as checked. that works fine after loadState
    2. I can use this to automatically save the state when user exits: $(window).bind(‘beforeunload’, function() { $.jgrid.saveState(“jqGrid”); });
    3. I tried this function to automatically loadState, but getting a javascript error in the console: window.onload = function() { if ($.jgrid.isGridInStorage(“jqGrid”)) { $.jgrid.loadState(“jqGrid”); } }
      Error message says: TypeError: ts.p is undefined : if ($.isFunction(ts.p.beforeProcessing)) { in jquery.jqGrid.js (line 2568, col 1)

    Thanks for your help

    • This reply was modified 10 years ago by jaya.
Viewing 3 replies - 1 through 3 (of 3 total)

Stay connected with us in your favorite flavor!