jQuery UI Widgets Forums Grid Reloading grid data

This topic contains 23 replies, has 9 voices, and was last updated by  kullayappa 8 years, 11 months ago.

Viewing 15 posts - 1 through 15 (of 24 total)
  • Author
  • Reloading grid data #7833

    robrichard
    Member

    I need to refresh my grid data after the user closes a jqxWindow (to create or edit data). I have captured the window close event and I attempt to refresh the grid, but it does not successfully reload the data from the datasource. Even making a call to create the grid again does not work. Am I not doing something properly?

    Here’s the event capture code:


    $('#jqxwindow').bind('close', function (event) {
    var item = $('#jqxtabs').jqxTabs('selectedItem');
    if (item == 0) {
    $("#jqxgrid1").jqxGrid('refreshdata');
    $("#jqxgrid1").jqxGrid('refresh');
    }
    else {
    $("#jqxgrid2").jqxGrid('refreshdata');
    $("#jqxgrid2").jqxGrid('refresh');
    }
    });

    Reloading grid data #7854

    Dimitar
    Participant

    Hello robrichard,

    Take a look at the following jqxGrid demo: popupediting.htm.

    Best Regards,
    Dimitar

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

    Reloading grid data #7892

    robrichard
    Member

    Thanks Dimitar – this sample is a good sample but does not accomplish what I am looking for. I would like the entire grid refreshed.

    Reloading grid data #7923

    robrichard
    Member

    Disregard – it was refreshing too quickly and not getting the changes from the database – lol!

    Reloading grid data #26454

    jamiegau
    Member

    I have been lookong into this for 6 hours now..
    This is not working for me..

    I send a ajax command that changes the data on the server…

    Issue a refreshdata and a refresh.. NO QUERY IS FIRED BACK TO SERVER TO COLECT NEW DATA….

    I am quite confused how something this simple and required is not working and not better documented.

    James

    Reloading grid data #26460

    novascape
    Participant

    All you need to do to display the updated data from the server is to execute:

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

    Reloading grid data #52999

    mirko.fisic
    Participant

    For me $(‘#jqxGrid’).jqxGrid(‘updatebounddata’); doesnt work 🙁

    Reloading grid data #53000

    Peter Stoev
    Keymaster

    This sample uses “updatebounddata” and it works: http://www.jqwidgets.com/jquery-widgets-demo/demos/php/serverfiltering_paging_and_sorting.htm?arctic. “updatebounddata” makes a new Ajax request using the same data source and re-renders the Grid. That is the method’s purpose and it does it.

    Best Regards,
    Peter Stoev

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

    Reloading grid data #62329

    kbajpai
    Participant

    I am able to reload the data with “updatebounddata”, but the sortColum, sortOrder, filters etc. remain even after “updatebounddata” has been called. Is there a way to completely reload the grid as if it was loaded for the first time.

    Reloading grid data #62478

    gosman
    Participant

    Did you ever get this sorted kbajpai? I’m looking for the same myself

    Reloading grid data #64705

    kullayappa
    Participant

    Hi jQWidgets team,
    i navigated to the second page of the jqxgrid, and upon some action i want to reload the grid to the first page, can you please help me out in this.

    Reloading grid data #64715

    Peter Stoev
    Keymaster

    Hello kullayappa,

    You can use the “gotopage” method to go to a given page.

    Best Regards,
    Peter Stoev

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

    Reloading grid data #64747

    kullayappa
    Participant

    Thank You, i know there is an option “gotopage”, but i want to load the with different source, at this time i want the grid to load from first page.

    Reloading grid data #64748

    kullayappa
    Participant

    My requirement is something like this:

    There were three date filter options like ‘Today’, ‘Week’ and ‘Month’. At first i will select a filter ‘Today’ and navigate to the second page and now i select the filter week and will create a new data adapter with different data in source then will send a request, in this case i want the grid to be load from the first page (URL is same but request parameters to the server are different).

    As you suggested if use the ‘gotopage’ unable to send a different request parameters to server. Please help me out….

    Reloading grid data #64764

    Peter Stoev
    Keymaster

    Hi kullayappa,

    If you want to load different source, then set the “source” property to point to new dataAdapter instance.

    Best Regards,
    Peter Stoev

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

Viewing 15 posts - 1 through 15 (of 24 total)

You must be logged in to reply to this topic.