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

Minimum size ThumbElement - RadListView

3 Answers 76 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Patrick
Top achievements
Rank 1
Patrick asked on 24 Sep 2018, 01:47 PM

Hello,

I have changed the minimum height of the ThumbElement (RadListView.ListViewElement.ViewElement.VScrollBar.ThumbElement.MinSize = New Size(0, 35)) because the button gets too small for me (height) when there are 1000+ items in the box.

This setting of the minimum size works perfectly, but there is one problem:

When scrolling down the slider-button (ThumbElement) all the calculation for the position is done on the "original" size with the result that the slider-button will be drawn over the "down" button. (see attached)

Has anyone a solution to solve this?

Grtz Patrick

3 Answers, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 24 Sep 2018, 02:03 PM
Hello, Patrick,  

Note that depending on the items count in RadListView, the vertical scrollbar is calculated and the thumb's size is adjusted. Hence, the more items you add to RadListView, the smaller the thumb gets. It is desired behavior. Manipulating the ThumbElement.MinSize and forcing its height is not recommended as it won't display proper indication for the available items according to the scrollbar and the scrolling behavior may not perform properly.

I hope this information helps.

Regards,
Dess
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Patrick
Top achievements
Rank 1
answered on 24 Sep 2018, 02:33 PM

Hi Dess,

Thanks for pointing that out.

The automatically resizing of the thumb is just the behavior that is "unwanted" if the button is smaller than a specific size.

The box needs to be controlled using touch screen and a thin line of 2~5 pixels high can not be controlled that way.

For this reason I have placed this post if someone had a workaround for this.

But maybe it's better that a place a feature request for this...

 

Grtz Patrick

0
Accepted
Dess | Tech Support Engineer, Principal
Telerik team
answered on 25 Sep 2018, 08:18 AM
Hello, Patrick,  

There is a public property in the ListViewElement.ViewElement.VScrollBar that controls the minimum height of the vertical scrollbar and minimum width for the horizontal scrollbar. It is called MinThumbLength. Thus, you can specify it to the desired value and the scrolling behavior will remain unchanged:

this.radListView1.ListViewElement.ViewElement.VScrollBar.MinThumbLength = 40;

I hope this information helps.
Regards,
Dess
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
ListView
Asked by
Patrick
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Patrick
Top achievements
Rank 1
Share this question
or