Can't access check box value from the Custom Filter

3 posts, 0 answers
  1. Julian
    Julian avatar
    77 posts
    Member since:
    Dec 2010

    Posted 09 Dec 2010 Link to this post

    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. Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 09 Dec 2010 Link to this post

    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
  3. UI for WPF is Visual Studio 2017 Ready
  4. Julian
    Julian avatar
    77 posts
    Member since:
    Dec 2010

    Posted 09 Dec 2010 Link to this post

    please delete current topic, and I'll add new one, with clear explonation.
    thx.
    J.
Back to Top