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

Strange scroll behaviour

5 Answers 462 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Sergey
Top achievements
Rank 1
Sergey asked on 11 Nov 2013, 02:49 PM
Hello!

I need real-time update. 
When I updated properties, everything was ok, but there were problems with sorting, filtering and grouping. 
According to your demo, I start to replace whole object. 
Everything works fine, but scroll's behaviour becomes very strange.

There is example: Sample

1. If you scroll grid for a while, you will see scroll "jumps" sometimes.. Here it is small jump, but in my app it is more noticeable.

2. If there are enough columns for horizontal scroll, it will also jump from right side, and it would be very difficult to use last column.

What should I do?

Thanks. 

5 Answers, 1 is accepted

Sort by
0
Vera
Telerik team
answered on 13 Nov 2013, 11:22 AM
Hello Sergey,

It seems that RadGridView cannot measure correctly how much space the rows need as there is not enough space for the text in the rows. Will it be appropriate for your case to set RowHeight property to 13? I tested it in your project and the unwanted scrolling behavior did not occur.

Regards,
Vera
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
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 >>
0
Sergey
Top achievements
Rank 1
answered on 13 Nov 2013, 11:40 AM

Thanks, but I can't set fixed row height. Our application users can set the row height or set size of the radgridview font because it's a trade application and they need to see a lot of data.

If we set row height as 11 and font size as 7, the error is gone. It seems that in memory gridview try to measure for font size which doesn't get into the row height .
Whether it is possible to make check which won't allow to set row height  depending on a font size?

0
Vera
Telerik team
answered on 15 Nov 2013, 02:49 PM
Hello Sergey,

Actually, you can make this check in your custom logic, i.e. you can set FontSize depending on the value the user chooses for RowHeight and vise versa. This way both properties will be changed together in order to avoid the problem.

Regards,
Vera
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
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 >>
0
Sergey
Top achievements
Rank 1
answered on 18 Nov 2013, 08:21 AM

Hello, Vera.

Yes, I can do that. But I use many telerik themes in one application. Do the all themes have the same RadGridView element sizes ? And if I'll put custom control in gridView column I'll get the same error, because the custom control will have other sizes . Whether it is possible to make any common decision of a problem?

0
Vanya Pavlova
Telerik team
answered on 20 Nov 2013, 10:35 PM
Hello Sergey,



Thank you for getting back to us! Generally different property values (FontSizes, RowHeight etc.) are different for all themes. For example: In Windows8 theme these values are different compared against the default Office_Black theme. Rather unfortunately there is no magic way to determine the best property values depending the FontSize/RowHeight and the corresponding theme in your scenario.
You should write your own custom condition, which will be applied based on a particular Telerik theme.  
Hope this helps!



Regards,
Vanya Pavlova
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
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
Sergey
Top achievements
Rank 1
Answers by
Vera
Telerik team
Sergey
Top achievements
Rank 1
Vanya Pavlova
Telerik team
Share this question
or