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

RadPropertyGrid ScrollPattern methods and properties not working as expected.

3 Answers 131 Views
PropertyGrid
This is a migrated thread and some comments may be shown as answers.
Dharmavaram
Top achievements
Rank 1
Dharmavaram asked on 22 Mar 2016, 04:11 AM

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.

   

3 Answers, 1 is accepted

Sort by
0
Stefan Nenchev
Telerik team
answered on 22 Mar 2016, 11:36 AM
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.
0
Dharmavaram
Top achievements
Rank 1
answered on 22 Mar 2016, 11:41 AM

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.

 

0
Stefan Nenchev
Telerik team
answered on 24 Mar 2016, 02:26 PM
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.
Tags
PropertyGrid
Asked by
Dharmavaram
Top achievements
Rank 1
Answers by
Stefan Nenchev
Telerik team
Dharmavaram
Top achievements
Rank 1
Share this question
or