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

Invalid Property Error while binding IsVisible

2 Answers 74 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Deven
Top achievements
Rank 1
Deven asked on 17 Jun 2009, 08:57 AM
We are using MVVM pattern and the model defines if a particular column is visible or not. The columns are defined in the xaml. When I try to bind the IsVisible property to  a boolean in the model, I get InvalidProperty error. Is this is a known issue or am I supposed to do something else.

Please help.
Thanks
Deven

2 Answers, 1 is accepted

Sort by
0
Accepted
Hristo Deshev
Telerik team
answered on 17 Jun 2009, 11:36 AM
Hi Deven,

At the moment that is not possible because of a Silverlight limitation because columns are not visual elements. I believe the best approach is to push that to your view's code behind and add custom code that will synchronize columns visibility to your model changes.

All the best,
Hristo Deshev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Deven
Top achievements
Rank 1
answered on 17 Jun 2009, 03:16 PM
Thanks for your reply. That is very disappointing that something as simple as this is not available in silverlight.
Tags
General Discussions
Asked by
Deven
Top achievements
Rank 1
Answers by
Hristo Deshev
Telerik team
Deven
Top achievements
Rank 1
Share this question
or