jQWidgets Forums

jQuery UI Widgets Forums Grid filterable grid hides first row

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

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • filterable grid hides first row #69651

    omargarro
    Participant

    Hi,
    I have a grid and when users submit the form fields, I fetch a new records from db and show them on the grid

    Problem is that, after re-assigning the dataadapter, the first row appears out of the visible area. And I need to scroll-up (using vertical scroll-bar) to see it

    var newDataAdapter = new $.jqx.dataAdapter( getSourceGrid(), {
    loadComplete: function() {
    $(“#dataGrid”).jqxGrid( {filterable: true, showfilterrow: true} );
    }
    });
    $(‘#dataGrid’).jqxGrid( { source: newDataAdapter });

    I discover that if I remove the filterable and showfilterrow options, the first records looks OK. But I need that filter capability !!

    I guess I need some method like jqxGrid(‘scrollToTop’) or something like that…

    help pls !

    filterable grid hides first row #69664

    Peter Stoev
    Keymaster

    Hi omargarro,

    There are scrolling methods available in jqxGrid’s API Documentation page – scrolloffset, ensurerowvisible. I also suggest you to initialize jqxGrid once. I don’t see a reason in your code why you dynamically turn on/off the Filter Row.

    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.