DHTMLX grid cell takes time to close

When i try to expand the grid it open it 3 seconds but when it close the grid it takes more than 10 secs to close the grid