Display dictionary in RadGridView

3 posts, 0 answers
  1. Eric
    Eric avatar
    5 posts
    Member since:
    May 2013

    Posted 21 Aug 2014 Link to this post

    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. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 22 Aug 2014 Link to this post

    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.
     
  3. Eric
    Eric avatar
    5 posts
    Member since:
    May 2013

    Posted 22 Aug 2014 Link to this post

    Hello,

    Finally, I have found a solution.

    Regards,

    Eric.
Back to Top