Minimum size ThumbElement - RadListView

4 posts, 1 answers
  1. Patrick
    Patrick avatar
    43 posts
    Member since:
    Aug 2018

    Posted 24 Sep 2018 Link to this post

    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

  2. Dess | Tech Support Engineer, Sr.
    Admin
    Dess | Tech Support Engineer, Sr.  avatar
    3566 posts

    Posted 24 Sep 2018 Link to this post

    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.
  3. Patrick
    Patrick avatar
    43 posts
    Member since:
    Aug 2018

    Posted 24 Sep 2018 in reply to Dess | Tech Support Engineer, Sr. Link to this post

    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

  4. Answer
    Dess | Tech Support Engineer, Sr.
    Admin
    Dess | Tech Support Engineer, Sr.  avatar
    3566 posts

    Posted 25 Sep 2018 Link to this post

    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.
Back to Top