Jump to content


Photo

How does work Multisort


  • Please log in to reply
1 reply to this topic

#1 Abner Doon

Abner Doon
  • Members
  • 27 posts
  • Gender:Male

Posted 13 December 2016 - 07:05 PM

Hi everybody
a simple question...
I wonder how I can sort a NextGrid with more than one column ?

Thanks



#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 14 December 2016 - 06:19 PM

Hi,

Actual sorting implementation is not yet added, but if sorting is done "outside" grid, you can:

1) Set MultiSort property of Grid to True.
2) With holding Ctrl + Click sort additional columns.
3) Use OnSortQuery event and then read decide to continue with sorting on specified column.
4) Use OnAfterSort event of NextGrid to read Sorted property of desired Columns.

I will implement full multi sorting algorithm soon, but people who use SQL queries or have own algorithms can use it now. I'm trying to find a way to not slow-down single column sorting and add multi-sort at same time.
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users