jQWidgets Forums

jQuery UI Widgets Forums Grid Auto refresh grid

Tagged: 

This topic contains 5 replies, has 3 voices, and was last updated by  swati 11 years, 1 month ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • Auto refresh grid #52585

    basim.sherif
    Participant

    Is there any way to make jqxgrid refresh automatically when new data is added to database?

    Auto refresh grid #52602

    swati
    Participant

    I also have the same question.In my case i have popups in grid and when pop up is closed ,the grid should be refreshed with updated data from popup.
    Please help?

    Auto refresh grid #52606

    C.S.Putera
    Participant

    Hello. I am using pop up to input data to the grid also and I bind the event on windows closed and refresh the grid using :

    
    ...
    $("#jqxGrid").jqxGrid("updatebounddata");
    ...
    
    Auto refresh grid #52618

    swati
    Participant

    can u post your fulll code for better understanding ?

    Auto refresh grid #52622

    C.S.Putera
    Participant

    I am sorry, I cannot show you my code because my code is not written in javascript, I have written a Yii Framework extension for JqWidgets and therefore my code is PHP, meaning I pass the params, functions, etc in PHP. I also use full AJAX and therefore I cannot do “right click view page source” and show you the generated source code.

    Have you take a look at this example ? Pop Up Dialog

    If you see the source code on line 115, there is a line :

    
    $("#Save").click(function () {
    ...
    

    Now if you want to refresh the grid when the user press the save button, then you could just add :

    
    $("#Save").click(function () {
    ...
    $("#jqxGrid").jqxGrid("updatebounddata");
    ...
    

    Or if you want to refresh the grid on window close then you could just add :

    
    $('#jqxWindow').on('close', function (event) { 
       $("#jqxGrid").jqxGrid("updatebounddata");
    });
    

    Hope that helps

    Auto refresh grid #52638

    swati
    Participant

    I am not using jqxWindow.instead i am using window.open and opening a new JSP on click of image button in jqxGrid.
    .
    PLease help me to refresh my grid from the new jsp that i am opening as pop up.

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

You must be logged in to reply to this topic.