I'm using an MVVM approach to an application. My Window has a textbox, a button, and a grid. When i click the button, i would like it to filter the grid based on the text inputted in the textbox. I realize the grid has built in filtering, but its more than likely too complicated for our end users.
Is there any way to expose the FilterDescriptors Collection via a binding property so i can add to it and apply the filter, since i don't have access to RadGridView1.FilterDescriptors in my code? This would be similar to how the textbox exposes it's text property.
Is there a way to expose the ColumnCollection or SortDescriptors?
<Grid> |
<Grid.DataContext> |
<Binding Source="{StaticResource MyDataContext}" Mode="OneWay" /> |
</Grid.DataContext> |
<telerik:RadGridView Margin="12,55,12,58" AutoGenerateColumns="True" Name="RadGridView1" > |
<telerik:RadGridView.ItemsSource> |
<Binding Path="Records" Mode="TwoWay" /> |
</telerik:RadGridView.ItemsSource> |
</telerik:RadGridView> |
<TextBox Height="23" HorizontalAlignment="Left" Margin="16,14,0,0" Text="{Binding SearchText}" Name="TextBox1" VerticalAlignment="Top" Width="120" /> |
<Button Height="23" HorizontalAlignment="Right" Margin="0,14,61,0" Command="{Binding SearchCommand}" Name="Button1" VerticalAlignment="Top" Width="75">Button</Button> |
</Grid> |
Is there any way to expose the FilterDescriptors Collection via a binding property so i can add to it and apply the filter, since i don't have access to RadGridView1.FilterDescriptors in my code? This would be similar to how the textbox exposes it's text property.
Is there a way to expose the ColumnCollection or SortDescriptors?