Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
255
How can add several data items in the iggrid or igdatachart?
posted

My program communicate through websocket in the jquery.

I cant' get the all data once through the websocket. It maybe a big data..

So, I get the data several times through the websocket.
I want to add new data with the existing data in the iggrid or igdatachart. 
But additem and addrow is only for one data, not for several data items. 

Let me know the method with some source code.

Parents
No Data
Reply
  • 15320
    Verified Answer
    Offline posted

    Hello Edward,

    Please note that 'addRow' API method adds only one record to the grid, however what you may do is to loop through the records that you want to add at once and pass them as parameter to the method, like for instance:

    for(var i=0; i<records.length;i++){
         $("#grid").igGridUpdating("addRow", records[i]);
    }

    Is this what you're looking for?

    If you have further questions, please let me know.

    Regards,

    Tsanna

Children