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

Can't access check box value from the Custom Filter

2 Answers 36 Views
DataFilter
This is a migrated thread and some comments may be shown as answers.
Julian
Top achievements
Rank 1
Julian asked on 09 Dec 2010, 07:51 AM
Hi,

Yesterday, I've faced with the situation that I can't set the value of the check box to my custom filter.

Well, take a look on that:

<CheckBox x:Name="myCheckBox"/>

<telerik:RadGridView.Columns>
<telerik:GridViewDataColumn>
           <CustomFilter:MyCustomFilter GetTheValueOfCheckBox={Binding ElementName=myCheckBox, Path=IsChecked}
        </telerik:GridViewDataColumn>
</telerik:RadGridView.Columns>
<telerik:RadGridView x:Name="myGrid">
</telerik:RadGridView/>

In code behind of the MyCustomFilter I registered my DependencyProperty.

I have to addmit, that we use MVVM and the grid is a view part only without codebehind.

How can I handle this issue ? 

Thank you in advance,
Julian

2 Answers, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 09 Dec 2010, 09:25 AM
Hello Julian,

We are confused by this XAML snippet. What is this MyCustomFilter thing? How are you using it?

By the way, this XAML that you have pasted is completely illegal. You have placed grid columns outside the grid and you have placed this thing MyCustomFilter inside a column. Both of these are impossible.

It would be best if you open a separate support ticket, attach a runnable sample project and tell us (in great detail) what exactly ware you trying to achieve.

Best wishes,
Ross
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
0
Julian
Top achievements
Rank 1
answered on 09 Dec 2010, 10:39 AM
please delete current topic, and I'll add new one, with clear explonation.
thx.
J.
Tags
DataFilter
Asked by
Julian
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Julian
Top achievements
Rank 1
Share this question
or