jQWidgets Forums

jQuery UI Widgets Forums Grid Placing Grid inside a splitter

This topic contains 4 replies, has 2 voices, and was last updated by  Thiago Arantes 11 years, 11 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • Placing Grid inside a splitter #21141

    Hello everyone,

    Does anybody know how to put a Grid inside a splitter filling 100% of the available space?

    Thanks

    Placing Grid inside a splitter #21152

    dfleming
    Participant

    This works for me. Set one of the column widths to ‘auto’

    var columns = [
    {text: “Description”, datafield: “description”, width: ‘auto’},

    ];

    $(“mygrid”).jqxGrid({
    width: “100%”,
    height: “100%”,
    columns: columns,

    }

    Placing Grid inside a splitter #21207

    Hi dfleming,

    This solution does not work for me, actually. Setting grid width to 100% hides all my scrollbars…

    Thanks for answering my question!

    Placing Grid inside a splitter #22540

    Any ideas on this one?
    Thanks

    Placing Grid inside a splitter #22555

    I’ve found a solution for my problem

    // Auto arrange grid width
    $('#jqxSplitter').on('resize', function (event) {
    updateGridWidth(event);
    });
    $('#jqxSplitter').on('expanded', function (event) {
    updateGridWidth(event);
    });
    $('#jqxSplitter').on('collapsed', function (event) {
    updateGridWidth(event);
    });

    and this

    // Auto arrange grid width
    function updateGridWidth(event) {
    $('#jqxgrid').jqxGrid({ width: event.args.panels[1].size });
    }
Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.