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

Group data bound to Dictionary

1 Answer 53 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Andreas
Top achievements
Rank 1
Andreas asked on 10 Jun 2010, 01:32 PM
Hi,

in this thread (Bindig to a Dictionary) you gave an example on how to use an object containing a dictionary as data source for a gridview. I adjusted this example for a current project and it worked very well.

In particular,
 - I add not only Objects of Type String but also of Type DateTime and Double to the Dictionaries "Attributes" in class LayerData
- further I set as DataType String, Double or DataTime for each GridViewDataColumn in the grid

These extensions allowed me to do convenient formatting of the output. Further I could implement sorting by writting my on code in an EventHandler of the Sorting event.

Now, where I am stuck is grouping. Whenever I drag a group header onto the grouping panel I get an exception.

Could you please provide me with a hint how custom grouping could be done in this case?

Thanks,
Stefan

1 Answer, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 10 Jun 2010, 03:13 PM
Hello Stefan,

Please open a support ticket and attach me your project. I will try to enable grouping for it .
In generally I can not give you a descent hint without seing your code.
However there is a new property in later versions  of RadGridView  - GroupMemberPath of the column. It may be helpful in your case.

All the best,
Pavel Pavlov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
GridView
Asked by
Andreas
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
Share this question
or