Frozen column on sorting by another column

2 posts, 0 answers
  1. Pablo
    Pablo avatar
    8 posts
    Member since:
    Feb 2016

    Posted 17 Jun Link to this post

    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!

  2. Dilyan Traykov
    Admin
    Dilyan Traykov avatar
    371 posts

    Posted 21 Jun Link to this post

    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.
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top