Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8141382

Enhance TableView to dynamically group based on columns

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • None
    • javafx
    • x86_64
    • windows_7

      A DESCRIPTION OF THE REQUEST :
      Currently the JavaFX TableView is static in it's layout once it's been rendered. Users are left with only the choice to Sort based on column headers. While the standard sorting is good, especially since it allows sorting on multiple columns, it still is hard to read the data if the table contains many hundreds of records.

      At times the user would like to be able to select to group on specific columns, and collapse data that they aren't interested in seeing expanded. Similar to how the TableTreeView works, but dynamic and at run time.

      A good example of a control like this is found in the HTML 5 UI framework, KendoUI http://demos.telerik.com/kendo-ui/grid/index . This allows the user to select a column and drag it to the top which will then sort and group the data for the user.

      This is very flexible, since the data doesn't need to be predefined in a tree format, but is simple tabular data.

      JUSTIFICATION :
      The use case that I have is such where the user will retrieve information from a database which contains several hundred rows.

      Based on how they use it, they would like to sort and group based on 0..n columns.

      For example, assume you have a result set for contacts with Name, Title, Company, Country, Phone, Email.

      The user decides they would like to group by title and then country - effectively creating a treelike table that collapses on those two fields. Another user may wish to view that data grouped by Company then Country.... And another just sorted with no grouping.

      We are migrating from an HTML 5 application which supports this to JavaFX and the users will unfortunately loose this ability, unless we build our own implementation.

      I think that this type of "groupable" ability on a native TreeView would add tremendous power to an already powerful toolkit.


            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: