Real-time data and Editor

Real-time data and Editor

dynasoftdynasoft Posts: 446Questions: 69Answers: 3

Hi,
Looking towards the future wrt Editor. Can SignalR or something similar be used with Editor? Our app will need to show real time data back to the user as it is being processed by the app. The user shouldn't have to click a button for a refresh. How best to achieve this? Thank you.

Answers

  • allanallan Posts: 64,008Questions: 1Answers: 10,554 Site admin

    Its more a question about DataTables than Editor this - since Editor is primarily an input control, while DataTables as an output control would need to reflect the updates.

    The way to do this is to listen on your socket for the changes and then use the DataTables API to add (row.add()), edit (row().data()) and remove (row().remove()) as required based on the messages from the server.

    Allan

  • dynasoftdynasoft Posts: 446Questions: 69Answers: 3

    Thank you

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    Hi @dynasoft ,

    There's a couple of threads, here and here, discussing how Socket.IO can be used to actively listen and might be useful,

    Cheers,

    Colin

This discussion has been closed.