jQWidgets Forums

jQuery UI Widgets Forums Grid nested grid hidecolumn

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

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • nested grid hidecolumn #32671

    Gecko
    Participant

    Anyone have an idea how to hide a nested column outside of the grid init.
    Like in the nested grid example if I wanted to have a checkbox elsewhere on the page that would hide the ‘ShipAddress’ column of the nested grid.

    A lot of the problems I have with the nested grid is because it doesn’t have an implicit name like a normal grid does, so you can’t use something like

    $("#main_grid").jqxGrid('hidecolumn', 'LastName');

    I have tried a few things (these don’t work):

    grid.jqxGrid('hidecolumn', $( this ).attr('id').substring(10));

    or

    $(".detailGrid").jqxGrid('hidecolumn', ‘ShipAddress’);

    even if you use

    $("#main_grid").jqxGrid({
    rowdetailstemplate: { rowdetails: "<div id='grid' class='detailGrid'
    nested grid hidecolumn #32677

    Peter Stoev
    Keymaster

    Hi Gecko,

    In the “initrowdetails”, save the Details Element into some Array defined outside the function and use the Details Element whenever you wish to set a property or call a method of a details grid.

    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.