Problems Binding ControlPanelItem

2 posts, 0 answers
  1. Hung
    Hung avatar
    2 posts
    Member since:
    Sep 2012

    Posted 09 Dec 2013 Link to this post

    I want a binding ICommand to the Click event of a button in ControlPanelitem. But it does not work. And I Binding SelectedValue of RadDatePicker control in ControlPanelItem and it also does not work. ControlPanelItem support from the model not binding?
  2. luc
    luc avatar
    24 posts
    Member since:
    Aug 2011

    Posted 30 Apr 2014 Link to this post


    The DataContext of ControlPanelItem don't inherited from your gridview DataContext. You can found your command with a RelativeSource.

    Command="{Binding Path=DataContext.MyCommand, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type telerik:RadGridView}}}"

Back to Top