jQWidgets Forums

jQuery UI Widgets Forums Grid Problem with Add New in Paging.

Tagged: 

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

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Problem with Add New in Paging. #17630

    Syai
    Participant

    Hi,

    I’m working on inline editing of jqxgrid. Whenever I create a record, it need to be shown as the top record of the page. for this I’m passing “Top” as param for the addrow method. This is working fine when I’m in the first page. But in other pages, it is returning empty row at the top. I’m using datatype as “json”. Can anyone help me on this.

    Below is the line of code I’m using to create.

    $(“#jqxgrid”).jqxGrid(‘addrow’, null, datarow, ‘top’);

    Regards,

    Syai

    Problem with Add New in Paging. #17632

    Peter Stoev
    Keymaster

    Hi Syai,

    The “addrow” method adds a row as first or last row in the collection. That does not depend on whether paging is enabled or not. If you call the method when you are on the second page, the “row” will be added, but it should not be displayed at the top of your page. It will be added at the top of the first page.

    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.