Rad Scrollable panel scrolls left on click off child control

6 posts, 0 answers
  1. Surya
    Surya avatar
    35 posts
    Member since:
    Nov 2011

    Posted 02 Mar Link to this post

    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.

  2. Dimitar
    Admin
    Dimitar avatar
    1415 posts

    Posted 04 Mar Link to this post

    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
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Surya
    Surya avatar
    35 posts
    Member since:
    Nov 2011

    Posted 04 Mar in reply to Dimitar Link to this post

    Hi ,

    Thanks for your response,

    I didn't see property AllowAutomaticScrollToControl . 

    We are using 2012.2.912.40 version.

    Please find attached images.

    Thanks.

  5. Dimitar
    Admin
    Dimitar avatar
    1415 posts

    Posted 04 Mar Link to this post

    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
  6. Surya
    Surya avatar
    35 posts
    Member since:
    Nov 2011

    Posted 04 Mar in reply to Dimitar Link to this post

    Hi ,

    Thanks for your response.

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

    Please advise.

     

    Thanks.


     

  7. Dimitar
    Admin
    Dimitar avatar
    1415 posts

    Posted 04 Mar Link to this post

    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
Back to Top
UI for WinForms is Visual Studio 2017 Ready