Difference between revisions of "Talk:Grids Reference Page"

From Free Pascal wiki
Jump to navigationJump to search
(Request new features)
(Feedback for sorting and filtering)
Line 3: Line 3:
 
Thanks for the tip. Perhaps if the help editor development is opened more people would help to make this sooner ;). --[[User:Jesusrmx|jesusrmx]] 08:31, 22 Mar 2005 (PST)
 
Thanks for the tip. Perhaps if the help editor development is opened more people would help to make this sooner ;). --[[User:Jesusrmx|jesusrmx]] 08:31, 22 Mar 2005 (PST)
  
== Request new features ==
+
== New Features Request ==
 
 
 
Heiner Morales Morera from email wrote: I think that a sorting and filtering mechanism would be also very useful and powerful. A filter like in "excel" or in the grid of "component one".
 
Heiner Morales Morera from email wrote: I think that a sorting and filtering mechanism would be also very useful and powerful. A filter like in "excel" or in the grid of "component one".
 +
*''For Sorting''. By Sorting I understand that the user can click the column header, and a visual mark (usually an arrow) will show the sorting direction, this can be acomplished right now drawing the mark in the cell title in OnDrawCell event, for the sorting operation, if the user had assigned an event handler for OnCompareCells then doing for example grid.Sort(true, 2) (probably in a handler for OnTitleClick for dbgrid or HeaderClick for other grids) will sort column index 2 by calling OnCompareCells. However for dbgrid probably the underlaying dataset might have a better sorting mechanism and then such must mechanism needs to be called in OnTitleClick. The drawing part could be implemented standard in the grids, having the user to supply a images for three status (arrows), ascending, descending, unsorted, an alignment for the image. Moreover, specific events could be added in the "sorting" mode, a better spec could be described here. --[[User:Jesusrmx|jesusrmx]] 23:25, 26 Apr 2005 (PDT)
 +
*''For filtering'' I like the idea of "excel" way. For example if the grid had a FilterMode property the (db)grid would enter in a mode with two fixed rows, the first the is the same title, the second a row with combos showing posible values for filter, again the implementation would be left to the user. Don't know what parts of this belong to standar grids. --[[User:Jesusrmx|jesusrmx]] 23:25, 26 Apr 2005 (PDT)

Revision as of 08:25, 27 April 2005

Suggestion: add a link to stringgrid fpdoc documention. It is still minimal, but I have hopes that it will grow this year. Vincent 01:46, 4 Mar 2005 (PST)

Thanks for the tip. Perhaps if the help editor development is opened more people would help to make this sooner ;). --jesusrmx 08:31, 22 Mar 2005 (PST)

New Features Request

Heiner Morales Morera from email wrote: I think that a sorting and filtering mechanism would be also very useful and powerful. A filter like in "excel" or in the grid of "component one".

  • For Sorting. By Sorting I understand that the user can click the column header, and a visual mark (usually an arrow) will show the sorting direction, this can be acomplished right now drawing the mark in the cell title in OnDrawCell event, for the sorting operation, if the user had assigned an event handler for OnCompareCells then doing for example grid.Sort(true, 2) (probably in a handler for OnTitleClick for dbgrid or HeaderClick for other grids) will sort column index 2 by calling OnCompareCells. However for dbgrid probably the underlaying dataset might have a better sorting mechanism and then such must mechanism needs to be called in OnTitleClick. The drawing part could be implemented standard in the grids, having the user to supply a images for three status (arrows), ascending, descending, unsorted, an alignment for the image. Moreover, specific events could be added in the "sorting" mode, a better spec could be described here. --jesusrmx 23:25, 26 Apr 2005 (PDT)
  • For filtering I like the idea of "excel" way. For example if the grid had a FilterMode property the (db)grid would enter in a mode with two fixed rows, the first the is the same title, the second a row with combos showing posible values for filter, again the implementation would be left to the user. Don't know what parts of this belong to standar grids. --jesusrmx 23:25, 26 Apr 2005 (PDT)