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

Frozen column on sorting by another column

1 Answer 67 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Pablo
Top achievements
Rank 1
Pablo asked on 17 Jun 2016, 10:15 AM

Dear team,

I have a customized column that constains my own usercontrol inside. The column works perfectly but when we sort by another column, this column don't move. 

This is my column definition:

<telerik:GridViewDataColumn                                    
                                    Width="*"
                                    Header="{Binding Source={StaticResource appResx}, Path=ep_ClearOpeningRange}"
                                    HeaderTextAlignment="Center"
                                    IsReadOnly="False">
                                    <telerik:GridViewDataColumn.CellTemplate>
                                        <DataTemplate>
                                            <StackPanel>
                                                <TextBox Text="{Binding ModelOpeningSill.OpeningType.ProductAttributeValueCode}" />
                                                <my:MultiRangeSlider                                                    
                                                    Id="{Binding ApplicationRangeId}"
                                                    Maximum="3000"
                                                    Minimum="600"
                                                    PropertyChangedCommand="{Binding DataContext.ApplicationRangeChangedCommand, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type local:ModelDetailView}}}"
                                                    Thumb1="{Binding CertifiedMinimumClearOpening, Mode=TwoWay}"
                                                    Thumb2="{Binding CertifiedMaximumClearOpening, Mode=TwoWay}"
                                                    Thumb3="{Binding RecommendedMinimumClearOpening, Mode=TwoWay}"
                                                    Thumb4="{Binding RecommendedMaximumClearOpening, Mode=TwoWay}"
                                                    TickFrequency="50" />
                                            </StackPanel>
                                        </DataTemplate>
                                    </telerik:GridViewDataColumn.CellTemplate>
                                </telerik:GridViewDataColumn>

 

My usercontrol is a multirange slider called: <my:MultiRangeSlider>. The textbox inside the StackPanel is sorted correctly but my usercontrol is totally static.

Attached captions maybe can help to understand my problem. In these captions the textbox inside the stackpanel was hidden (only was created for test).

Thanks in advance!

1 Answer, 1 is accepted

Sort by
0
Dilyan Traykov
Telerik team
answered on 21 Jun 2016, 10:56 AM
Hello Pablo,

I'm afraid I'm unable to reproduce the issue you've described with the information provided so far, but what I can offer you is to create your own MultiRangeSliderColumn following the approach described in the Create Custom DateTimePicker Column article.

You can also have a look at the Custom Column demo from the SDK Samples Browser for a good example on how to create a custom column with a RadSlider as an editor element.

I hope you find this helpful.

Regards,
Dilyan Traykov
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Tags
GridView
Asked by
Pablo
Top achievements
Rank 1
Answers by
Dilyan Traykov
Telerik team
Share this question
or