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.
Hi Tsanna,
There is nothing....
Thanks.
Hello Edward,
Can I help you with anything else?
Regards,
Tsanna
Hi Edward,
What do you mean by "more efficient method than that"? You're asking about an API method that adds multiple records at once or? If this is the case, then currently there is no such method and I suggested you the workaround using the available 'addRow' method.
If you have further questions, please let me know.
Hi,
Thank you for your quick reply.I already know that...Is there any more efficient methods than that?
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?