Refresh Data automatically ???

Refresh Data automatically ???

saad90saad90 Posts: 3Questions: 1Answers: 0
edited September 2016 in Free community support

HI,

Is that the Datatable will automatically refreshes after it receives the data coming from the business layer (.Net MVC )

Tks

Answers

  • allanallan Posts: 63,815Questions: 1Answers: 10,517 Site admin

    No, but you can use clear() and rows.add() to update the DataTable based on new data that you get via Ajax, a WebSocket or anything else.

    Allan

  • saad90saad90 Posts: 3Questions: 1Answers: 0
    edited September 2016

    ok thanks and what about use Datatable plugin for Angular ??

    http://l-lin.github.io/angular-datatables/archives/v0.4.x/#/serverSideProcessing

  • allanallan Posts: 63,815Questions: 1Answers: 10,517 Site admin

    I couldn't say, I'm not that author of that package I'm afraid.

    Allan

  • saad90saad90 Posts: 3Questions: 1Answers: 0

    ok Let me explain you my situation.
    i have to build a new application in mongoDB C# .Net . (MVC)
    i will get the data from server side and display it in datatable automatically without refresh the page.
    so can you advice me ?
    Thanks LOT

  • allanallan Posts: 63,815Questions: 1Answers: 10,517 Site admin

    Well if you are getting the data via DataTables' ajax option, then you could use ajax.reload() to reload from the data source.

    Allan

This discussion has been closed.