We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Performance issues when adding new record to grid widget.

Thread ID:

Created:

Updated:

Platform:

Replies:

124032 May 10,2016 11:46 AM May 11,2016 08:21 AM JavaScript 1
loading
Tags: ejGrid
Tzelon
Asked On May 10, 2016 11:46 AM

Hey,
I have performance issues when adding new record to grid widget.
when adding new record using the addRecord function, I can see its taking by average 90 ms to add the new record, this is very long time.
Is there a faster way to add records to the grid ?
why is it taking so long ?

Thanks 
Tzelon 

Image

Seeni Sakthi Kumar Seeni Raj [Syncfusion]
Replied On May 11, 2016 08:21 AM

Hi Tzelon 

Thanks for using Syncfusion Product. 

The public method addRecord will perform the following action.  

It will add a new row to the DOM and it will push a newly added record to the datasource bound to the Grid. If the Grid has already performed any action like sorting, grouping, and filtering, the Grid will perform the same action after adding a new record to the Grid which the behavior. Since the datasource collection will be modified after adding a new record, we have to perform the actions that were done earlier. So it will take a least time of 90ms to perform these actions while adding a new record using the addRecord method.  

Regards, 
Seeni Sakthi Kumar S. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;