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

Binding IsVisible (GridViewColumn) fails

4 Answers 153 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.
Stig-Arild Martinsen
Top achievements
Rank 1
Stig-Arild Martinsen asked on 27 Oct 2009, 02:46 PM

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.

4 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 27 Oct 2009, 02:53 PM
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.
0
Stig-Arild Martinsen
Top achievements
Rank 1
answered on 27 Oct 2009, 02:58 PM

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

0
1897
Top achievements
Rank 1
answered on 30 Mar 2012, 03:29 PM
In Silverlight 4 persiste this problem?
0
Dimitrina
Telerik team
answered on 30 Mar 2012, 03:36 PM
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 >>
Tags
GridView
Asked by
Stig-Arild Martinsen
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Stig-Arild Martinsen
Top achievements
Rank 1
1897
Top achievements
Rank 1
Dimitrina
Telerik team
Share this question
or