Invalid Property Error while binding IsVisible

3 posts, 1 answers
  1. Deven
    Deven avatar
    33 posts
    Member since:
    Apr 2009

    Posted 17 Jun 2009 Link to this post

    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. Answer
    Hristo Deshev
    Admin
    Hristo Deshev avatar
    559 posts

    Posted 17 Jun 2009 Link to this post

    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.
  3. Deven
    Deven avatar
    33 posts
    Member since:
    Apr 2009

    Posted 17 Jun 2009 Link to this post

    Thanks for your reply. That is very disappointing that something as simple as this is not available in silverlight.
Back to Top