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

sorting is not working for radcombox which is inside the celledittemplate of telerik radgrid in silverlight

1 Answer 25 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Dilip
Top achievements
Rank 1
Dilip asked on 04 Nov 2014, 07:22 AM
Hi,

Can please someone help why sorting is not happening eventhough CanuserSort is set to true for the column with radcombox which is inside the celledittemplate of telerik radgrid in silverlight.

please find below the xaml,

<telerik:RadGridView   CanUserSortColumns="True"
                             ShowInsertRow="False"
                             ShowGroupPanel="False">
<telerik:GridViewDataColumn IsReorderable="False"
                                            IsFilterable="False"
                                            UniqueName="State"
                                            DataMemberBinding="{Binding SelectedState}"
                                            CellTemplateSelector="{StaticResource StateTemplateSelector}">
                    <telerik:GridViewColumn.Header>
                        <TextBlock>
                            <Run>State</Run>
                            <Run Foreground="Red"
                                 FontWeight="Bold">*</Run>
                        </TextBlock>
                    </telerik:GridViewColumn.Header>                   
                    <telerik:GridViewColumn.CellEditTemplate>
                        <DataTemplate>
                            <telerik:RadComboBox ItemsSource="{Binding StateCountyValueModel.States}"
                                                 DisplayMemberPath="StateAbbr"
                                                 SelectedItem="{Binding SelectedState, Mode=TwoWay}">                             
                            </telerik:RadComboBox>
                        </DataTemplate>
                    </telerik:GridViewColumn.CellEditTemplate>
                </telerik:GridViewDataColumn>

1 Answer, 1 is accepted

Sort by
0
Yoan
Telerik team
answered on 06 Nov 2014, 04:17 PM
Hello,

I've tried to reproduce the problem you report, but to no avail. I have prepared a sample project using the provided code snippet. You can find it attached. Please give it a try and let me know how it works on your side.

Regards,
Yoan
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
GridView
Asked by
Dilip
Top achievements
Rank 1
Answers by
Yoan
Telerik team
Share this question
or