This is a migrated thread and some comments may be shown as answers.

Initializing a grid with a default column

1 Answer 123 Views
Grid
This is a migrated thread and some comments may be shown as answers.
William
Top achievements
Rank 1
William asked on 05 Oct 2011, 04:36 PM
Hello All,
Hopefully, this will be a quick and answer to this question.  When I load my grid with data,I would like it to default to group by a column.  For example, if there was a list of cars like the following:
Manufacturer  Model
Ford Fusion
Ford Explorer
Toyota Prius
Toyota Rav4
Once the data is loaded into the grid, I want to be initialize the grid to be grouped by the Manufacturer.

Some issues/enhancements that would be nice for the grid UI component:
1) setting the column width to a fixed position say 50px does not display correctly if the header text is larger than 50px.  It would be nice if the header automatically adjusts to fit the header.  In the above example with the cars, if I set the Manufacturer column to 50px, it would fit the data fine, but the Manufacturer column will be larger than 50px.
2) I would like a collapse all or expand all feature for the grouping as well.
3) When dragging the grouping column header into the grouping row, the field name is displayed instead of the title name.  It is very confusing for the user to see the title name in the grid and the field name in the grouping row. 
Thanks,
William

1 Answer, 1 is accepted

Sort by
0
William
Top achievements
Rank 1
answered on 05 Oct 2011, 06:52 PM
Never mind, I figured it out.  I call the group function with the field I want to group by in the datasource object for the grid. 
Tags
Grid
Asked by
William
Top achievements
Rank 1
Answers by
William
Top achievements
Rank 1
Share this question
or