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

Using indexed properties causes sorting to be disabled.

1 Answer 27 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Clint Singer
Top achievements
Rank 1
Clint Singer asked on 15 Oct 2012, 07:02 PM

When using the following xaml it disables sorting and filtering. In particular it’s the DataMemberBinding.

 

<telerik:GridViewDataColumn Header="Name" DataMemberBinding="{Binding Path=Model[Name].Value}" IsReadOnly="True" IsSortable="True" IsFilterable="True" IsGroupable="False"/>


The following does work:

 

<telerik:GridViewDataColumn Header="Name" DataMemberBinding="{Binding Path=Model.Name}" IsReadOnly="True" IsSortable="True" IsFilterable="True" IsGroupable="False"/>

 

I did read that using DataType= will help the control know what type but that didn’t work either.

In code the Model[Name].Value would actually be Model["Name"].Value.  The Model.Name access the same thing more directly.

Is this not a supported scenario or is there something that can be done?

Cheers,
Clint

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 16 Oct 2012, 05:42 AM
Hi,

 Will the same work with standard Silverlight DataGrid or this is not working with RadGridView only?

Kind regards,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
GridView
Asked by
Clint Singer
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or