Binding data to UserControl inside RowDetailsTemplate

2 posts, 0 answers
  1. Andrea
    Andrea avatar
    9 posts
    Member since:
    Jul 2010

    Posted 07 Nov 2011 Link to this post

    Hi,
    I am using a radGridView with a RowDetailsTemplate.
    This data template contains a UserControl whi has 2 DependencyProperties, whose values I Bind to the Grid ItemsSource

    <Controls1:HistoryDataList PathMapId="{Binding Id}" History="{Binding History}"/>

    Problem:
    The properties are never set.

    if I use the same control inside on of the Grid's columns then it works fine, so it has nothing to do with the UserControl, but rather with the Bindning value not being called when inside teh RowDetailTemplate

    Any Idea?

    This is how I devlare my properties:

     

     

    public static readonly DependencyProperty PathMapIdProperty = DependencyProperty.Register("PathMapId", typeof(Guid), typeof(HistoryDataList), null);


    public
    Guid PathMapId

    {
    get{return (Guid)this.GetValue(PathMapIdProperty);}
    set{this.SetValue(PathMapIdProperty, value);}

    }

     

     

     

     

     

     

     

     



  2. Daní
    Daní avatar
    303 posts
    Member since:
    Feb 2008

    Posted 07 Nov 2011 Link to this post

    Hi Andrea

    Can you see any Binding error in Output window when you run your app in debug mode?
  3. DevCraft banner
Back to Top