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

[Solved] How to achieve two binding for a dictionary property in RadGridView

1 Answer 68 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Dhileep Kumar Sampath
Top achievements
Rank 1
Dhileep Kumar Sampath asked on 28 Oct 2009, 01:40 PM
Hi All,
       I am using radgridview in my usercontrol, i am adding the columns at runtime based on the number of key value pairs in a dictionary. I am able to bind the data using value converter. But i am not able to achieve the two way binding. Someone please suggest me how to get the values back in ConvertBack method of the converter. I have given my converter code below:

public class ScoreConverter : IValueConverter 
    { 
        #region IValueConverter Members 
 
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) 
        { 
            var result = (Dictionary<string, int>)value; 
 
            return result[parameter.ToString()]; 
        } 
        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) 
        { 
          //Not Implemented 
        } 
 

So how can i achieve two way binding for a dictionary property in radgridview?
Regards,
Dhileep

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 28 Oct 2009, 01:47 PM
Hello Dhileep,

Support for this in Silverlight is very limited. If you want dynamic data I suggest you to check my DataTable:
http://blogs.telerik.com/vladimirenchev/posts/09-04-23/lightweight_datatable_for_your_silverlight_applications.aspx

All the best,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
Dhileep Kumar Sampath
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or