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

sorting cause horizontal scroll bar to reset

8 Answers 341 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jerry Kurata
Top achievements
Rank 1
Jerry Kurata asked on 08 Feb 2011, 06:07 PM
Hi,

I have a grid with a lot of columns (20+) and when you sort on the column the horizontal scroll bar resets to the left most position which often hides the column you just sorted (or filtered) on.  I read this was fixed in the Q3 2010 build which we have installed, but the problem persists.  Note, we also freeze several of the columns.

jerry

8 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 09 Feb 2011, 08:26 AM
Hi,

 Please use our latest service pack - Q3 2010 SP1. You can try our demos to see that the is fixed. 

Greetings,
Vlad
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Amorphous2010
Top achievements
Rank 1
answered on 18 Mar 2011, 11:01 PM

Hi,
I switched to the Q1 2011 release and this seems to no longer be an issue. However, a new issue seems to have arisen (I suppose I can submit a bug report):  When you click a header to sort, the horizontal scrolling no longer happens but the column widths seem to change after clicking the same header several times. You can try with this partial grid (that first select column seems to enlargen):


<tk:RadGridView x:Name="searchResultsGrid"
    tk:StyleManager.Theme="Office_Black"
    AutoGenerateColumns="False"
    IsReadOnly="True"
    ItemsSource="{Binding SearchResults}"
    Margin="10,2,10,10"
    RowIndicatorVisibility="Collapsed"
    SelectionMode="Extended"
    SelectionUnit="FullRow"
    ShowGroupPanel="False">
    <tk:RadGridView.Columns>
        <tk:GridViewSelectColumn />
        <tk:GridViewDataColumn DataMemberBinding="{Binding Name}" Header="Name" UniqueName="Name" />
        .
        .
        .
        <tk:GridViewDataColumn DataMemberBinding="{Binding Zip}" Header="Zip" UniqueName="Zip" />
    </tk:RadGridView.Columns>
</tk:RadGridView>

 

0
Vlad
Telerik team
answered on 21 Mar 2011, 08:06 AM
Hi,

 Column width will be changed according to cells data - you can hardcode desired width in pixels if you do not want this. 

Greetings,
Vlad
the Telerik team
0
Steven
Top achievements
Rank 1
answered on 28 Feb 2013, 10:43 AM
Hi,

I am having the same issue as the original post (sorting causes the horizontal scroll bar to reset).

This was working until we switched from binding from decimal values to a custom object and setting the SortMemberPath property.

Any help would be greatly appreciated.

Thanks,

Steven
0
Vlad
Telerik team
answered on 28 Feb 2013, 11:29 AM
Hello,

 Can you post more info about your version? Are you using our latest Q1 2013?

Greetings,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Steven
Top achievements
Rank 1
answered on 28 Feb 2013, 11:53 AM
Hi Vlad,

We are using the release prior to Q1 2013 (though we are planning on updating shortly).,

Steven
0
Vera
Telerik team
answered on 05 Mar 2013, 11:35 AM
Hi Steven,

 
We have tried to reproduce the problem but to no avail. Please find attached the project used for the test. Are you able to get the described behavior on it? 

Regards,
Vera
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Stone
Top achievements
Rank 1
answered on 24 Mar 2021, 09:05 AM
If the grid data is all from front end, this will be good. But the get data from backend api when sorting any column, the scroll bar still be reset, any idead on how to fix this issue ?
Tags
GridView
Asked by
Jerry Kurata
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Amorphous2010
Top achievements
Rank 1
Steven
Top achievements
Rank 1
Vera
Telerik team
Stone
Top achievements
Rank 1
Share this question
or