jQWidgets Forums

jQuery UI Widgets Forums General Discussions JQWdgets 3.1.0 issue

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

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • JQWdgets 3.1.0 issue #47570

    DavidSimmons
    Participant

    I have Grid, invoice like application that can have multiple pages of items. On the entry of an ProductID column I perform over 5 AfterCrudEvents which populate supporting columns to the ProductID, Because of this requirement I have to perform a $(jqxgrid).jqxGrid(‘updatebounddata’); after the ProductID column is complete to see all the supporting information. In the new release when you perform a updatebounddata the grid default to the top of page one even if you were halfway down page 3. This happened back about 2 releases ago as well. Can this be fixed where on updatebounddata event the grid keeps the record location state. That I know of this has happen a couple of releases back you guys were able to correct it. I have been using JQWidgets since 2.5 or so. My codebase is 130,000 lines of code and would be difficult to change the basic functionality at this point.

    JQWdgets 3.1.0 issue #47580

    Peter Stoev
    Keymaster

    Hi David,

    “updatebounddata” is a method which performs a new data binding and re-renders the Grid. If it is necessary, it will reset the scrollbar’s position or will change the page’s number. That is the behavior by design. If you want to get the current page, you can use the “getpaginginformation”. The “gotopage” method can be used after that to navigate to a specific page” .

    Example 1:

    var paginginformation = $('#jqxGrid').jqxGrid('getpaginginformation');
    // The page's number.
    var pagenum = paginginformation.pagenum;
    // The page's size.
    var pagesize = paginginformation.pagesize;
    // The number of all pages.
    var pagescount = paginginformation.pagescount;
    

    Example 2:

    $('#jqxGrid').jqxGrid('gotopage', 1);
    

    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.