Question for Virtual Scrolling for DataTables

Question for Virtual Scrolling for DataTables

chelseajcolechelseajcole Posts: 12Questions: 0Answers: 0
edited July 2011 in Plug-ins
http://datatables.net/blog/Introducing_Scroller_-_Virtual_Scrolling_for_DataTables
I have a question in Artical above?

Is the Scroller plugin include an AJAX call?

And, my datatable has already in a container, how can I can change the "sAjaxSource": "/release-datatables/extras/Scroller/media/data/2500.txt", to my own datatable?

Replies

  • allanallan Posts: 63,643Questions: 1Answers: 10,492 Site admin
    The Ajax call is made by the DataTables - not the Scroller plug-in. Scroller will work just fine with any of the data sources that DataTables works with ( http://datatables.net/usage ), but you will see the largest performance benefit from using an Ajax source or a Javascript array.

    Allan
  • chelseajcolechelseajcole Posts: 12Questions: 0Answers: 0
    Thanks Allan

    Ajax source here I always see in .txt file. For my case, I have already got the DataTable,is that still Ajax source?

    chelseajcole
  • allanallan Posts: 63,643Questions: 1Answers: 10,492 Site admin
    When you say you've got a DataTable - how did you initialise it? If you used sAjaxSource then yes it is using Ajax sourced data - otherwise no its not. If it isn't, then you can easily get the data you want from the server with your own $.ajax call and then use the DataTables API (fnAddData) to add new data to the table.

    Allan
  • chelseajcolechelseajcole Posts: 12Questions: 0Answers: 0
    I bind the datatable with GridView so that it can show in the browser now. The datatable now put in a Unity container. So can I make a Ajax to to the Unity to get the data?
This discussion has been closed.