Binding IsVisible (GridViewColumn) fails

5 posts, 0 answers
  1. Stig-Arild Martinsen
    Stig-Arild Martinsen avatar
    4 posts
    Member since:
    Sep 2009

    Posted 27 Oct 2009 Link to this post

    When binding the IsVisible property (GridViewColumn) we get the error message AG_E_PARSER_BAD_PROPERTY_VALUE.

    Examplecode:

    <UserControl.Resources>
    <test:ColumnConfiguration x:Key="Config" />
    </UserControl.Resources>


    <telerikGrid:RadGridView x:Name="grdTest">    

            <telerikGrid:RadGridView.Columns>    
                 <telerikGrid:GridViewColumn IsVisible="{Binding CaseNumberIsVisible, Source={StaticResource Config}}">    
                     <telerikGrid:GridViewColumn.Header>    
                         <TextBlock Text="{Binding ColumnName, Source={StaticResource Config}}" />    
                     </telerikGrid:GridViewColumn.Header>    
                  </telerikGrid:GridViewColumn>    
             </telerikGrid:RadGridView.Columns>    
    </telerikGrid:RadGridView>  

    The value we're binding against is a bool.

    Do we have to set this in code only? We're using the MVVM pattern and would like to avoid code for this.

  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 27 Oct 2009 Link to this post

    Hi,

    Binding on properties of non control elements is not supported in Silverlight 3 - Microsoft promised fix for this for Silverlight 4. The only way I can suggest you at this moment is to change this programmatically.

    Sincerely yours,
    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.
  3. Stig-Arild Martinsen
    Stig-Arild Martinsen avatar
    4 posts
    Member since:
    Sep 2009

    Posted 27 Oct 2009 Link to this post

    Thanks for fast reply. We'll have to do it programmatically then.

  4. 1897
    1897 avatar
    24 posts
    Member since:
    Aug 2010

    Posted 30 Mar 2012 Link to this post

    In Silverlight 4 persiste this problem?
  5. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 30 Mar 2012 Link to this post

    Hello,

     This is now supported. Please follow this forum thread for more details. 

    All the best,
    Didie
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Back to Top