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

ScrollBar Vertical

1 Answer 74 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Gabriel
Top achievements
Rank 1
Gabriel asked on 13 Jan 2014, 01:13 PM
Good morning,

             when I load my data in the gridview, I am having trouble enabling the vertical scroll,
since pesquesei in telerik documentation and used the method:
private void EnableScrollBars()
{
    ScrollViewer.SetHorizontalScrollBarVisibility( this.radGridView, ScrollBarVisibility.Visible );
    ScrollViewer.SetVerticalScrollBarVisibility( this.radGridView, ScrollBarVisibility.Visible );
}
Appeared vertical scroll option but was not enabled, you searched the forum and found a solution: AutoGenerateColumns="True"
<telerik:RadGridView x:Name="gridChamados"
                                     ShowGroupFooters="False"
                                     ShowColumnFooters="False"
                                     ItemsSource="{Binding Lista, Mode=OneWay}"
                                     IsReadOnly="True"
                                     AutoGenerateColumns="True">
this option was set to false, I made the change to true and now it works, but when I start to go down "muiro fast" using the scroll bar my data disappear, but I can slow down to view data.

Any suggestions?

thank you



Gabriel Tavares

1 Answer, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 15 Jan 2014, 10:06 AM
Hi Gabriel,

If the items on the page are not "overflowing" out of the container's size, scrolling will be impossible even if the scrollbars are visible.

By default if the property AutoGenerateColumns is set to false, you would have to define the columns manually. This is done because the user may not want to display some of the properties of the item and would like to see only the first three and last of them.

When this property is set to true, GridView creates the column, based on the properties of the object to which it has been bound.

Can you provide us with more information about your case when the data disappears and which version of our controls you are using?

You can find different tips & tricks about fixing degraded performance in our online documnentation: link.

Regards,
Hristo
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
GridView
Asked by
Gabriel
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Share this question
or