jQuery UI Widgets Forums Grid grid always updated in real time

This topic contains 9 replies, has 2 voices, and was last updated by  Hugo 9 years, 11 months ago.

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
  • grid always updated in real time #61660

    Hugo
    Participant

    Good Morning,
    can anyone help?
    as leaving the grid always updated in real time?

    grid always updated in real time #61665

    Dimitar
    Participant

    Hello Hugo,

    The grid is updated in real time – when you leave a cell’s edit mode, the cell value will be updated. Please clarify your question if you need more information on another topic, such as updating the database after cell edit.

    Best Regards,
    Dimitar

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

    grid always updated in real time #61680

    Hugo
    Participant

    Hi Dimitar 🙂

    example:

          Admin -> insert a new resgistro
          User -> grid view in realtime WHAT entered the Admin

    Style Chat, a guy writes something while another guy viewing.
    understand?

    grid always updated in real time #61707

    Dimitar
    Participant

    Hi Hugo,

    I understand your requirement. To achieve this, the changes to the admin grid will have to be posted to the server (on each change made), through the source updaterow callback. The user grid will have to be updated on some time interval with the updatebounddata method. Depending on the technology you use, please check out the guides Build CRUD Web App with jqxGrid using PHP and MySQL or CRUD with jqxGrid, ASP.NET MVC3 and SQL to see how you may implement the “admin part”.

    Best Regards,
    Dimitar

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

    grid always updated in real time #61724

    Hugo
    Participant

    Dimitar thank you so much 😉

    grid always updated in real time #61729

    Hugo
    Participant

    Is not good, the grid lock and the user can not use the grid
    would not have a way to update the data without interfering with filters?

    plus the message appears on the console -> Uncaught TypeError: Cannot read property ‘0’ of null

    my code:

                 window.setInterval(function(){
    		$("#jqxgrid").jqxGrid('updatebounddata');
    	     }, 2000);
    
    grid always updated in real time #61793

    Dimitar
    Participant

    Hi Hugo,

    Please read the extra information about updatebounddata from the jqxGrid API Documentation:

    Updates the bound data and refreshes the grid. You can pass ‘filter’ or ‘sort’ as parameter, if the update reason is change in ‘filtering’ or ‘sorting’. To update only the data without the columns, use the ‘data’ parameter. To make a quick update of the cells, pass “cells” as parameter. Passing “cells” will refresh only the cells values when the new rows count is equal to the previous rows count. To make a full update, do not pass any parameter.

    Best Regards,
    Dimitar

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

    grid always updated in real time #61827

    Hugo
    Participant

    @dimitar Sorry, should have read more carefully the documentation.

    Help me with one more question,
    how to let the invisible loadelement when execute the updatebounddata.
    used the parameter "showdefaultloadelement: false" more keeps appearing

    grid always updated in real time #61842

    Dimitar
    Participant

    Hi Hugo,

    You should rather set the property autoshowloadelement to false.

    Best Regards,
    Dimitar

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

    grid always updated in real time #61878

    Hugo
    Participant

    thank you so much

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

You must be logged in to reply to this topic.