RadPropertyGrid ScrollPattern methods and properties not working as expected.

4 posts, 0 answers
  1. Dharmavaram
    Dharmavaram avatar
    73 posts
    Member since:
    Jun 2013

    Posted 21 Mar Link to this post

    Hi, 

             I have used Scroll Pattern on RadPropertyGrid to get VerticalScroll Percent but the value is '0.0' only even after the scroll happened till end.

     Another problem is  with Scrollpattern.ScrollVertical(ScrollAmount.LargeIncrement) method .It is doing smallincrements instead of PageDown or PageUp and vice versa.

     

    Regards,

    Nagasree.

       

  2. Stefan Nenchev
    Admin
    Stefan Nenchev avatar
    279 posts

    Posted 22 Mar Link to this post

    Hi Dharmavaram,

    The template of the RadPropertyGrid is a more complex one and it contains more than one ScrollViewer elements. You need to work with the ScrollViewer that is contained within the PropertyGridPresenter part of the RadPropertyGrid.

    As I am not absolutely familiar with the setup on your end and the operations you intend on applying, I am here providing you with information how to get the ScrollViewer within the PropertyGridPresenter:

    var sv = this.PropertyGrid1.ChildrenOfType<PropertyGridPresenter>().FirstOrDefault().ChildrenOfType<ScrollViewer>().FirstOrDefault();
    where the name of the RadPropertyGrid is PropertyGrid1. 

    Eventually, you can manipulate it directly, by using its ScrollToVerticalOffset, ScrollToBottom, etc. methods.

    Regards,
    Stefan Nenchev
    Telerik
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Dharmavaram
    Dharmavaram avatar
    73 posts
    Member since:
    Jun 2013

    Posted 22 Mar in reply to Stefan Nenchev Link to this post

    Hi Stefan,

       I am using it from Automation side.On the RadPropertyGrid Automation Element we can get ScrollPattern using that if we try to scroll it will behave as I explained above.

    If you still need any information let me know.

    Regards,

    Nagasree.

     

  5. Stefan Nenchev
    Admin
    Stefan Nenchev avatar
    279 posts

    Posted 24 Mar Link to this post

    Hi Nagasree,

    Thank you for the clarification.

    We have further investigated the issue and, indeed, it is related to a bug within the Automation Peer of the RadPropertyGrid. I have logged the issue in our internal system and we expect to come up with a fix within some of our next internal builds. You can follow the item in our Items & Feedback Public portal at the following link - ScrollPattern Methods Incorrect Behavior. I have also added 1000 Telerik Points to your account for reporting the issue.

    If you have any further questions or concerns, do not hesitate to contact us.

    Regards,
    Stefan Nenchev
    Telerik
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Back to Top