APYDataGridBundle icon indicating copy to clipboard operation
APYDataGridBundle copied to clipboard

row grouping ?

Open patie opened this issue 12 years ago • 8 comments

Hi,

its possible row grouping ?

maybe something like that - http://datatables.net/release-datatables/examples/advanced_init/row_grouping.html

chunks of rows separately based on some parameter (for ex. category)

patie avatar Nov 14 '12 12:11 patie

You can filter on a hidden column if you like, after that you can add like your exemple some rows.

Abhoryo avatar Nov 14 '12 12:11 Abhoryo

i dont need filtering, i talking about "header rows" for rows groups

patie avatar Nov 14 '12 14:11 patie

I've talk about filtering to force the order of the row then you just have to add your header rows.

Abhoryo avatar Nov 14 '12 15:11 Abhoryo

can u give me easy example please ? thank you!

patie avatar Nov 14 '12 17:11 patie

What is the problem ? With the exemple you add in your issue:

  • Add with annotation the column browser_engine source and filterable = true and visible = false.
  • Add the source annotation with the attribute groupBy="browser_engine"
  • Add your rows headers in javascript like your exemple or in twig directly.

Abhoryo avatar Nov 16 '12 15:11 Abhoryo

yes, but i need it for vector type.. :/

patie avatar Nov 23 '12 13:11 patie

For my second point, you can group and order yourself the data. Extends the class Vector to perform this behavior.

Abhoryo avatar Jan 21 '13 14:01 Abhoryo

:+1:

webdevilopers avatar Aug 15 '14 08:08 webdevilopers