Using binding with Member of GroupDescriptor

4 posts, 0 answers
  1. Subhendu
    Subhendu avatar
    10 posts
    Member since:
    Mar 2013

    Posted 20 May 2013 Link to this post

    I can easily assign a value to member in XAML :

    <telerik:RadGridView.GroupDescriptors>
                    <telerikData:GroupDescriptor Member="FirstName" />             
    </telerik:RadGridView.GroupDescriptors>
                

    But what if I want to bind a value to the member property  As per the documentation , member is a CLR propertey and I can not use the binding as :

    <telerik:RadGridView.GroupDescriptors>
                    <telerikData:GroupDescriptor Member="{Binding FilterType}" />              
     
    </telerik:RadGridView.GroupDescriptors>.
     
     private string filterType =  "FirstName";
     
            public string FilterType
            {
                get { return filterType; }
                set { filterType = value; }
            }

    What the other way around? Custom control  looks like a solution but telerik is already a custom control. Deriving from it and adding a dependency property seems redundant.
  2. Pavel Pavlov
    Admin
    Pavel Pavlov avatar
    2039 posts

    Posted 20 May 2013 Link to this post

    Hi,

    RadGridView would not sense any changes in the member of the group descriptor. It would trigger grouping only on adding a new one. Binding in this case is not applicable even if you could manage to bind the property  somehow.

    All the best,
    Pavel Pavlov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
  4. Subhendu
    Subhendu avatar
    10 posts
    Member since:
    Mar 2013

    Posted 20 May 2013 Link to this post

    So Is there a way I can update the Member value dynamically.
  5. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 21 May 2013 Link to this post

    Hello,

    Unfortunately this would not be possible. 

    Kind regards,
    Didie
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top