ListView Scroll Bars ... Determine when visiblility changes.

2 posts, 0 answers
  1. Mark
    Mark avatar
    75 posts
    Member since:
    Oct 2014

    Posted 03 Nov Link to this post

    I am looking for an event to tell me when the scroll bars visibility changes, if it exists.

     

    TIA

  2. Dimitar
    Admin
    Dimitar avatar
    1994 posts

    Posted 06 Nov Link to this post

    Hello Mark,

    You can use the RadPropertyChanged event:
    public RadForm1()
    {
        InitializeComponent();
         
        radListView1.ListViewElement.ViewElement.VScrollBar.RadPropertyChanged += VScrollBar_RadPropertyChanged;
    }
     
    private void VScrollBar_RadPropertyChanged(object sender, Telerik.WinControls.RadPropertyChangedEventArgs e)
    {
        if (e.Property.Name == "Visibility")
        {
            Console.WriteLine(e.NewValue);
        }
    }

    I hope this will be useful. Let me know if you have additional questions.

    Regards,
    Dimitar
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top