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

Using binding with Member of GroupDescriptor

3 Answers 116 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Subhendu
Top achievements
Rank 1
Subhendu asked on 20 May 2013, 06:58 AM
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.

3 Answers, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 20 May 2013, 08:05 AM
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.

0
Subhendu
Top achievements
Rank 1
answered on 20 May 2013, 09:04 AM
So Is there a way I can update the Member value dynamically.
0
Dimitrina
Telerik team
answered on 21 May 2013, 03:47 PM
Hello,

Unfortunately this would not be possible. 

Kind regards,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
GridView
Asked by
Subhendu
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
Subhendu
Top achievements
Rank 1
Dimitrina
Telerik team
Share this question
or