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

Rad Scrollable panel scrolls left on click off child control

5 Answers 170 Views
ScrollablePanel
This is a migrated thread and some comments may be shown as answers.
Surya
Top achievements
Rank 1
Surya asked on 02 Mar 2016, 02:26 PM

Hi,

   On click on Gridview cell , rad scroll able panel scrolls to left .

   Controls tree

   (Parent) Rad scrollable panel --> panel --> rad page view --> rad grid view (child )

 

Please find attached image.

 

Thanks.

5 Answers, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 04 Mar 2016, 06:17 AM
Hi Surya,

Thank you for writing.

To disable the auto scroll you should set the AllowAutomaticScrollToControl property to false (see attached image).

Please let me know if there is something else I can help you with. 
 
Regards,
Dimitar
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Surya
Top achievements
Rank 1
answered on 04 Mar 2016, 07:12 AM

Hi ,

Thanks for your response,

I didn't see property AllowAutomaticScrollToControl . 

We are using 2012.2.912.40 version.

Please find attached images.

Thanks.

0
Dimitar
Telerik team
answered on 04 Mar 2016, 10:11 AM
Hello Surya,

Thank you for writing back.

This property was introduced in the Q3 2014 (2014.3.1021) version. Detailed information is available here: UI for Winforms Feedback Portal - FIX. RadScrollablePanel - scrollbar jumps when the control loses focus and then regains it - set AllowAutomaticScrollToControl property to false

To workaround this with your version you should create a custom control like this:
public class MyPanel : RadScrollablePanel
{
    protected override RadScrollablePanelContainer CreateScrollablePanelContainer()
    {
        return new MyContainer(this);
    }
    public override string ThemeClassName
    {
        get
        {
            return typeof(RadScrollablePanel).FullName;
        }
 
         
    }
}
public class MyContainer : RadScrollablePanelContainer
{
    public MyContainer(RadScrollablePanel parentPanel): base (parentPanel)
    {
          
    }
    protected override Point ScrollToControl(Control activeControl)
    {
        return new Point(0, 0);
    }
}

Do not hesitate to contact us if you have other questions.

Regards,
Dimitar
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Surya
Top achievements
Rank 1
answered on 04 Mar 2016, 01:36 PM

Hi ,

Thanks for your response.

I am getting MyPanel.CreateScrollablePanelContainer()': no suitable method found to override.

Please advise.

 

Thanks.


 

0
Dimitar
Telerik team
answered on 04 Mar 2016, 02:10 PM
Hello Surya,

Thank you for writing back.

It appears that this method can be overridden in the Q2 2014 (2014.2.617.40) version. Unfortunately, there is no workaround for the version that you are using. So the only possible solution for this would be to upgrade to newer version.

If you have any questions, please do not hesitate to contact us.
  
Regards,
Dimitar
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
ScrollablePanel
Asked by
Surya
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Surya
Top achievements
Rank 1
Share this question
or