jQWidgets Forums

jQuery UI Widgets Forums Grid AutoresizeColumns after filtering

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

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • AutoresizeColumns after filtering #46465

    TomasDvorak
    Participant

    Hi,

    My initial problem was that table columns are not wide enough to display the data when a table is loaded. I added:

    	$("#jqxgrid").on('bindingcomplete', function () {
                    $("#jqxgrid").jqxGrid('autoresizecolumns');
                });
    

    So, I works, but when I filter for something then columns got smaller and again everything is visible.

    I added the following code, but it doesn’t seem to be called.

    $("#jqxGrid").on('filter', function () 
    {    $("#jqxgrid").jqxGrid('autoresizecolumns');
    
    }); 

    Could you please help me? Thanks

    AutoresizeColumns after filtering #46466

    Dimitar
    Participant

    Hello TomasDvorak,

    In your second code sample, the grid’s id is jqxGrid, but it should be jqxgrid, as in the first sample.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

    AutoresizeColumns after filtering #46467

    TomasDvorak
    Participant

    Amazing. Thanks for the help. It works.

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

You must be logged in to reply to this topic.