jQuery UI Widgets Forums Grid getrowdata of hidden column

This topic contains 3 replies, has 2 voices, and was last updated by  Peter Stoev 11 years, 3 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • getrowdata of hidden column #32696

    C.S.Putera
    Participant

    Hello. I have a grid, which has a hidden column. In this case, the hidden column named “delivery_confirmation_id” is not shown, set hidden using “hidecolumn” method. Now I want to get the value of that id when the user click the row. When I try to get the value ( using alert to show the id ), it show 0.

    Here is the code :

    $("#'.$deliveryConfirmationGridId.'").jqxGrid("hidecolumn","delivery_confirmation_id");
    var gridObject = $("#'.$deliveryConfirmationGridId.'");
    var selectedrowindex = gridObject.jqxGrid("getselectedrowindex");
    var id = gridObject.jqxGrid("getrowid", selectedrowindex);
    var row = gridObject.jqxGrid("getrowdata",selectedrowindex);
    alert(row.delivery_confirmation_id); // Displays 0

    Is there something wrong that I did ? Please help, thank you

    getrowdata of hidden column #32698

    Peter Stoev
    Keymaster

    Hi C.S.Putera,

    May be your delivery_confirmation_id is 0.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    getrowdata of hidden column #32699

    C.S.Putera
    Participant

    Thank you for the fast response. Nope, it has its value. I found the problem, it was my mistake, I did not assign the value, because I use method “addrow” for the grid rows, and did not set the delivery_confirmation_id. Thanks once again

    getrowdata of hidden column #32700

    Peter Stoev
    Keymaster

    Thanks for the update.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.