Is grouping by numeric ranges supported?

2 posts, 0 answers
  1. Morgan
    Morgan avatar
    4 posts
    Member since:
    Dec 2011

    Posted 15 Dec 2011 Link to this post

    I am looking for some way to group by a range of values. For example, dragging a sales header to the grouping region might generate the following groups:

    30,000 and up

    I have thought about doing this with IValueConverter, and grouping on the converted value, but I was not sure if there was a better way.  Thanks.
  2. Rossen Hristov
    Rossen Hristov avatar
    2478 posts

    Posted 16 Dec 2011 Link to this post

    Hi Morgan,

    Create a new read-only string property that will return a range based on the data item value. Then group by this new property.

    That is called a view model. You adapt your model (DB) for display in the view (UI) by using a view-model.

    I hope this helps.

    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top