jQWidgets Forums

jQuery UI Widgets Forums Grid Grid autosize

This topic contains 2 replies, has 3 voices, and was last updated by  Peter Stoev 9 years, 1 month ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Grid autosize #83155

    betosolano
    Participant

    Hi,

    I have a problem with the jqxgrid when the control has to resize cause the container size changed.

    Here is the example: http://jsfiddle.net/betorage/1k5roman/

    How can i fix this?

    Thanks

    Grid autosize #83159

    taskmate
    Participant

    Hi

    Code calls for the container to resize but doenot tell the grid to do so.

    Kindly add
    $(‘#jqxgrid’).jqxGrid(‘refresh’);

    $(“#boton”).on(“click”, function() {
    $(“.tableContainer”).toggleClass(“larger”)
    $(‘#jqxgrid’).jqxGrid(‘refresh’);
    });

    Verified on the fiddler it works well

    Regards

    Grid autosize #83173

    Peter Stoev
    Keymaster
        $(".tableContainer").toggleClass("larger");
        $(".tableContainer").trigger('resize');
    

    is also valid solution for this Grid scenario. The issue in your code is that you toggle a CSS class to some HTML Element, but the Grid cannot know about this so that is the reason it is not resized.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.