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.
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
Hi,
Thank you for your quick reply.I already know that...Is there any more efficient methods than that?