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

Binding GridView to UI Controls not working

2 Answers 38 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ivan Moura
Top achievements
Rank 1
Ivan Moura asked on 30 Jul 2010, 01:27 PM

I was using the RadGridView for Silverlight Q3_2009 and upgraded to Q2_2010 and had the following issue.

The system is using a Grid with its ItemsSource bound to an Observable collection of the following object:

public class RegistroDePropertyGrid
    {
        private TextBlock TextBlockDescricao;
        public string NomePropriedade { get; set; }
         
        public RegistroDePropertyGrid()
        {
            this.TextBlockDescricao = new TextBlock();
            this.TextBlockDescricao.TextWrapping = TextWrapping.Wrap;
 
        }
 
        public Object Descricao
        {
            get { return this.TextBlockDescricao; }
            set {
                this.TextBlockDescricao.Text = Convert.ToString(value);
                ToolTipService.SetToolTip(this.TextBlockDescricao, Convert.ToString(value));
            }
        }
        public Control EditorDePropriedade { get; set; }
    }

The two columns appeared in the Q3_2009 has expected: a TextBlock and any given control instantiated in the Object. But now in Q2_2010 it only appears the class name (the default toString() I presume) in the two columns. How do I fix this or workaround this Issue?

2 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 30 Jul 2010, 01:40 PM
Hello,

 Our cells content is now cached and only the cell TextBlock Text will be changed. You can create your own CellTemplate or your own column (similar to my blog post) to handle such scenario. 

Greetings,
Vlad
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
0
Ivan Moura
Top achievements
Rank 1
answered on 30 Jul 2010, 02:05 PM
Thanks for the promptly resoponse. This resolved the issue.
Tags
GridView
Asked by
Ivan Moura
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Ivan Moura
Top achievements
Rank 1
Share this question
or