Author Topic: virtualXHeaderType and slow sorting  (Read 4460 times)

youngvan

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 42
    • View Profile
virtualXHeaderType and slow sorting
« on: March 03, 2015, 09:16:48 pm »
Cheers!

Here is my problem:
I have lot number of columns and few-level header in my table, so I need to set virtualX: true and virtualXHeaderType: false (to display rowspan and colspan correctly). Grid works fine but there's one problem with sorting- it works slow -up to 5 sec. If I set option virtualXHeaderType: true -it work very fast though header displays not properly  :(.
Is it possible to speed up sorting in grid with disabled virtualXHeaderType?

Thanks in advance!

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: virtualXHeaderType and slow sorting
« Reply #1 on: March 04, 2015, 12:04:45 am »
How much is the initial binding and refresh time.

Could you please share a jsfiddle.

http://jsfiddle.net/b6b710mz/9/

youngvan

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 42
    • View Profile
Re: virtualXHeaderType and slow sorting
« Reply #2 on: March 04, 2015, 04:40:22 pm »
Here's my jsFiddle:
http://jsfiddle.net/b6b710mz/60/

Try to test sorting with virtualXHeader true and false.

Thanks!
« Last Edit: March 04, 2015, 05:02:05 pm by youngvan »

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: virtualXHeaderType and slow sorting
« Reply #3 on: March 04, 2015, 06:14:56 pm »
I found the script for resizable columns is slowing it down, it would be optimized in next version.

Meanwhile you can use resizable: false to make the sorting and refresh time faster.
Code: [Select]
columnTemplate: {resizable: false},

http://jsfiddle.net/4Ldz3anx/

youngvan

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 42
    • View Profile
Re: virtualXHeaderType and slow sorting
« Reply #4 on: March 04, 2015, 06:35:51 pm »
Thank you very much!
I look forward for new version.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: virtualXHeaderType and slow sorting
« Reply #5 on: March 24, 2015, 11:59:06 pm »
Performance related to this issue has been optimized in v2.4.1