View Full Version : Performance issue:Scripting to change data value in Grid

24 Jan 2012, 9:22 AM
Hi Ext JS Community:

For some reasons, I script to change the data value. There are about 650 records in my grid ! The data field which I tried to change is linked to check column.

However, I notice if I did following code. My Grid will freeze for more than 6-7seconds. It causes some performance issue.It seems like it is doing something to the communicate to check column and refresh grid view.

I am just wondering if there's any better way to do it. Please Help. Many thanks.

if (rec.get('rname') == 'Birmingham'){

24 Jan 2012, 9:40 AM
You need to suspend events in the store, then after you do all of your updates, fire an update event.

24 Jan 2012, 9:48 AM
Thank you !

24 Jan 2012, 9:53 AM
BTW, these questions should be asked in the Ext JS 4 Q&A section :). moving this thread there...