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

Display dictionary in RadGridView

2 Answers 138 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Eric
Top achievements
Rank 1
Eric asked on 21 Aug 2014, 02:55 PM
Hello,

Here is my case:
I'm working in MVVM.

In my ViewModel I have a list of object like this one :

public class MyObject
  {
    public string Name { get; set; }

    public Dictionary<string,bool> Options
    {
      get;
      set;
    }
  }

In my View I want to bind my datagrid to a the list of MyObject and have a display looks like :
Name                      | Option1 | Option2  | Option3 | ...
Object1Name          | true       |false        |true
Object2Name          | true       |true         |true
...

The bool should be a checkBox

The string is well displayed but I dont know how display the Dictionary.
I hope someone can help me with this issue.

Thanks,

Eric.

PS : Sorry for the faults but English is not my mother tongue.

2 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 22 Aug 2014, 09:30 AM
Hello,

I can suggest you to check the "Various Data Sources" WPF Demo on how to implement different scenarios.

I hope it will help you with the implementation.

Regards,
Didie
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
Eric
Top achievements
Rank 1
answered on 22 Aug 2014, 11:52 AM
Hello,

Finally, I have found a solution.

Regards,

Eric.
Tags
GridView
Asked by
Eric
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Eric
Top achievements
Rank 1
Share this question
or