jQWidgets Forums

jQuery UI Widgets Forums Grid Grid resize.

This topic contains 2 replies, has 2 voices, and was last updated by  Martin 5 years, 6 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Grid resize. Posts
  • Grid resize. #107226

    nigelwright7558
    Participant

    I have a jqgrid set up in Visual Studio.
    Everything works well apart from window resizing.
    The window itself resizes fine.
    However, the grid only resizes if I click the “refresh” button on the browser menu bar.
    I have spent about a day going through online examples and I cant see where I am going wrong.
    I have set jxgrid width to ‘100%’
    I have resize function called ok.
    I have tried “refresh” function etc but nothing resizes the grid.
    $(window).bind(‘resize’, function () {

    $(“#jqxgrid”).jqxGrid(‘updatebounddata’, ‘cells’); //refresh screen

    }).trigger(‘resize’);
    Any clues would be appreciated.

    Grid resize. #107227

    nigelwright7558
    Participant

    The problem was the window and grid weren’t being resized to the browser window size.
    So I copied browser window width to jqxgrid and jqxwindow and that fixed the problem.

    Grid resize. #107232

    Martin
    Participant

    Hello nigelwright7558,

    Thank you for the update!

    Best Regards,
    Martin

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

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

You must be logged in to reply to this topic.