jQWidgets Forums

jQuery UI Widgets Forums Grid re-init grid

Tagged: 

This topic contains 6 replies, has 2 voices, and was last updated by  fabbiob 11 years, 4 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    re-init grid Posts
  • re-init grid #47790

    fabbiob
    Participant

    Hello and thanks in advice

    i need to reset filters, sorting params etc and reload the grid data.
    with the following code i’m getting a lot of exception of type
    “data already loading …..’

    $(“#jqxgrid”).jqxGrid(‘clearfilters’);
    setTimeout(hidefltrs,300);

    $(“#jqxgrid”).jqxGrid(‘removesort’);

    setTimeout($(“#jqxgrid”).jqxGrid(‘gotopage’, 1), 200);

    SO how can i reset filters, sorting and go to page 1 ?

    fabio

    re-init grid #47791

    Mariya
    Participant

    Hi fabbiob,

    In order to reset the values and reload the jqxGrid, you can use the ‘source’ property and set it to a new dataAdapter instance .If you have any further questions do not hesitate to contact us.

    Best Wishes,
    Mariya

    jQWidgets Team
    http://www.jqwidgets.com

    re-init grid #47792

    fabbiob
    Participant

    Thanks Mariya

    it’s almost ok.
    just it does not reset the sorting info.

    now i’m doing that

    $(“#jqxgrid”).jqxGrid(‘source’,
    new $.jqx.dataAdapter(
    source
    , {
    contentType: ‘application/json; charset=utf-8’
    , loadError: function (xhr, status, error) {
    alert(error);
    }
    }
    )
    );

    re-init grid #47794

    Mariya
    Participant

    Hi fabbiob,

    Which jqWidgets version are you currently using?

    Best Wishes,
    Mariya

    jQWidgets Team
    http://www.jqwidgets.com

    re-init grid #47847

    fabbiob
    Participant

    i’m using 3.0.4

    fabio

    re-init grid #47848

    Mariya
    Participant

    Hi Fabio,

    You can download and upgrade your version with the latest jqWidgets version 3.1.0. After that if you have the same issue do not hesitate to contact us.

    Best Wishes,
    Mariya

    jQWidgets Team
    http://www.jqwidgets.com

    re-init grid #47849

    fabbiob
    Participant

    ok i’ll test it in the newxt few days
    thank you Mariya

    fabio

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

You must be logged in to reply to this topic.