This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
I have been testing out the new group by functionality for the datagrids added in the recently nightly builds, and am generally impressed. There are two bits of functionality I'd like to see, I'm wondering if they (something similar) are planned to be included. 1) A parameter on DataGridColumn to allow / disallow grouping by that column. For example, we would like to be able to group by the Date property on a data item, but grouping by the X-Coordinate (which the values are generally unique) doesn't make much sense. 2) Template / DisplayMemberPath for header in group. Many of the values on our data items (entities) are stored in terms of an index referencing an object, for example a MeasurementInterval has a PathId property describing which path it belongs to. For the DisplayTemplate of the item, we use a converter to get the Name of the path, rather than displaying the PathId directly. Right now when we group, the header on the Group is always the PathId, with no (apparent) way to display anything else. |
|
|
Hello and thanks for the feedback. Yes these grouping features (among others) are planned. In fact, I'll have these 2 features ready for you in the next nightly build: 1) You will be able to set the AllowGrouping property to false to disable grouping on the desired DataGridColumns. 2) You will be able to set the GroupRowHeaderTemplate or GroupRowHeaderTemplateSelector properties on a DataGridColumn. This will template the header for the collapsible groups created by that column. The data context of the template will be the object displayed by the group header - A DateTime, string or double etc. (This is different to cell templates where the data context is the entire row content). -Jason |
|
|
The functionality in the nightly is exactly what we needed. Thanks! |
|