Unplanned
Last Updated: 22 Apr 2020 02:22 by Mauricio
Mauricio
Created on: 21 Apr 2020 14:46
Category: ListView
Type: Feature Request
2
ListView: Provide an option to hide the horizontal scrollbar
I have the need to hide the horizontal scroll bar in the lists
2 comments
Mauricio
Posted on: 22 Apr 2020 02:22

This would be a very useful functionality for UX reasons.

 

Regards

ADMIN
Didi
Posted on: 21 Apr 2020 15:51

Hello,

This scenario could be achieved using custom renderer or Xamarin.Forms effect. 

Custom Renderer for Android:

using Android.Content;

[assembly: Xamarin.Forms.ExportRenderer(typeof(Telerik.XamarinForms.DataControls.RadListView), typeof(ListView.Droid.CustomListViewRenderer))]

namespace ListView.Droid
{
    public class CustomListViewRenderer : Telerik.XamarinForms.DataControlsRenderer.Android.ListViewRenderer
    {
        public CustomListViewRenderer(Context context) : base(context)
        {

        }
        protected override void OnElementChanged(Xamarin.Forms.Platform.Android.ElementChangedEventArgs<Telerik.XamarinForms.DataControls.RadListView> e)
        {
            base.OnElementChanged(e);

            if(this.Control != null)
            {
                this.Control.ListView.HorizontalScrollBarEnabled = false;
            }
        }
    }
}


Regards,
Didi
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.