Author Topic: Ignore few rows when sorting  (Read 2303 times)

bsolteam

  • Pro Deluxe
  • Full Member
  • *
  • Posts: 107
    • View Profile
Ignore few rows when sorting
« on: January 31, 2015, 04:59:59 pm »
Hi,
I want to do a sorting without consideration of top 1 row and bottom 10 rows. I have found a topic related to my requirment. http://paramquery.com/forum/index.php?topic=953.0 But for me rows are having values. How can I sort In-between rows (or) How can I attach/detach rows. The rows are having some unique values.
Thanks in advance.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Ignore few rows when sorting
« Reply #1 on: February 12, 2015, 08:22:22 pm »
Detach rows in this context means removal of row objects ( the rows which you don't want to be sorted ) from dataModel.data array in beforeSort event with Array.splice method
and attach rows means re addition of the rows in dataModel.data array in sort event.