none
How set scroll viewer on particular panel or section RRS feed

  • Question

  • Hi, I have large page with scroll viewer. In the page different different are sections. I created section with the help of stack panel and grid view. left side have option to reach on particular section.

    Now i want to how to reach on particular section (or panel) on the clicking of menu. see the screen shot of the layout.

    In the image you can see 8 section(left side). I want to reach on particular section on the click of link of left side.

    Please provide need full solution.

    Friday, June 14, 2019 9:46 AM

Answers

  • Hi   AnkitKumar2016,

    >>this  issue is not of telerik. All control is not of telerik, i have other control like stack panel, grid, button.. which i use. 
    I updated code. Please check and suggest the changes. 

    Please try the following code.

                 Point point = ScrollViewer1.TranslatePoint(new Point(), RadioButton7);
                ScrollViewer1.ScrollToVerticalOffset(ScrollViewer1.VerticalOffset - point.Y);

    Best regards

    Yong Lu


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Tuesday, June 18, 2019 8:31 AM
    Moderator

All replies

  • Have you tried s.BringIntoView(), where s is an element that should be made visible, such as the section or its caption? See also s.BringIntoView(r), where s is the section and r is the section’s rectangle.

    Friday, June 14, 2019 11:39 AM
  • code with bringIntoView(). Its not working.

        private async void OnZumpOnSection(string sectionName)
            {
                
                switch (sectionName)
                {
                    case "Billing":
                        Label lblBillingDetails = FindChild<Label>(App.Current.MainWindow, "lblBillingDetails");
                        if (lblBillingDetails != null)
                        {
                            lblBillingDetails.BringIntoView();
                            //Point point = lblBillingDetails.TranslatePoint(new Point(0, 0), App.Current.MainWindow);
                            //var splitRightScrollViewer = FindChild<ScrollViewer>(App.Current.MainWindow, "splitRightScrollViewer");
                            //if (splitRightScrollViewer != null)
                            //    splitRightScrollViewer.ScrollToVerticalOffset(point.Y);
                        }
    
                        break;
                    case "Agreements":
                        Telerik.Windows.Controls.RadGridView amgtGrid = FindChild<Telerik.Windows.Controls.RadGridView>(App.Current.MainWindow, "amgtGrid");
                        if (amgtGrid != null)
                        {
                            amgtGrid.BringIntoView();
                            //Point point = amgtGrid.TranslatePoint(new Point(0, 0), App.Current.MainWindow);
                            //var splitRightScrollViewer = FindChild<ScrollViewer>(App.Current.MainWindow, "splitRightScrollViewer");
                            //if (splitRightScrollViewer != null)
                            //    splitRightScrollViewer.ScrollToVerticalOffset(point.Y);
                        }
                        break;
                    case "Opportunities":
                        Telerik.Windows.Controls.RadGridView opportuityGrid = FindChild<Telerik.Windows.Controls.RadGridView>(App.Current.MainWindow, "opportuityGrid");
                        if (opportuityGrid != null)
                        {
                            opportuityGrid.BringIntoView();
                            //Point point = opportuityGrid.TranslatePoint(new Point(0, 0), App.Current.MainWindow);
                            //var splitRightScrollViewer = FindChild<ScrollViewer>(App.Current.MainWindow, "splitRightScrollViewer");
                            //if (splitRightScrollViewer != null)
                            //    splitRightScrollViewer.ScrollToVerticalOffset(point.Y);
                        }
                        break;
                    case "Sites":
                        Telerik.Windows.Controls.RadGridView sitesGrid = FindChild<Telerik.Windows.Controls.RadGridView>(App.Current.MainWindow, "sitesGrid");
                        if (sitesGrid != null)
                        {
                            sitesGrid.BringIntoView();
                            //Point point = sitesGrid.TranslatePoint(new Point(0, 0), App.Current.MainWindow);
                            //var splitRightScrollViewer = FindChild<ScrollViewer>(App.Current.MainWindow, "splitRightScrollViewer");
                            //if (splitRightScrollViewer != null)
                            //    splitRightScrollViewer.ScrollToVerticalOffset(point.Y);
                        }
                        break;
                    case "Units":
                        Telerik.Windows.Controls.RadGridView unitGrid = FindChild<Telerik.Windows.Controls.RadGridView>(App.Current.MainWindow, "unitGrid");
                        if (unitGrid != null)
                        {
                            unitGrid.BringIntoView();
                            Point point = unitGrid.TranslatePoint(new Point(0, 0), App.Current.MainWindow);
                            var splitRightScrollViewer = FindChild<ScrollViewer>(App.Current.MainWindow, "splitRightScrollViewer");
                            if (splitRightScrollViewer != null)
                                splitRightScrollViewer.ScrollToVerticalOffset(point.Y);
                        }
                        break;
                    case "PurchaseOrders":
                        Telerik.Windows.Controls.RadGridView customerPurchaseOrderGrid = FindChild<Telerik.Windows.Controls.RadGridView>(App.Current.MainWindow, "customerPurchaseOrderGrid");
                        if (customerPurchaseOrderGrid != null)
                        {
                            customerPurchaseOrderGrid.BringIntoView();
                            //Point point = customerPurchaseOrderGrid.TranslatePoint(new Point(0, 0), App.Current.MainWindow);
                            //var splitRightScrollViewer = FindChild<ScrollViewer>(App.Current.MainWindow, "splitRightScrollViewer");
                            //if (splitRightScrollViewer != null)
                            //    splitRightScrollViewer.ScrollToVerticalOffset(point.Y);
                        }
                        break;
                    case "Contacts":
                        Telerik.Windows.Controls.RadGridView contactsGrid = FindChild<Telerik.Windows.Controls.RadGridView>(App.Current.MainWindow, "contactsGrid");
                        if (contactsGrid != null)
                        {
                            contactsGrid.BringIntoView();
                            //Point point = contactsGrid.TranslatePoint(new Point(0, 0), App.Current.MainWindow);
                            //var splitRightScrollViewer = FindChild<ScrollViewer>(App.Current.MainWindow, "splitRightScrollViewer");
                            //if (splitRightScrollViewer != null)
                            //    splitRightScrollViewer.ScrollToVerticalOffset(point.Y);
                        }
                        break;
                    case "Invoices":
                        Telerik.Windows.Controls.RadGridView invoicGrid = FindChild<Telerik.Windows.Controls.RadGridView>(App.Current.MainWindow, "invoicGrid");
                        if (invoicGrid != null)
                        {
                            invoicGrid.BringIntoView();
                            //Point point = invoicGrid.TranslatePoint(new Point(0, 0), App.Current.MainWindow);
                            //var splitRightScrollViewer = FindChild<ScrollViewer>(App.Current.MainWindow, "splitRightScrollViewer");
                            //if (splitRightScrollViewer != null)
                            //    splitRightScrollViewer.ScrollToVerticalOffset(point.Y);
                        }
                        break;
                }
                
            }


    code which i am using. Its working. But not getting exact location. see code and suggest changes.

    private async void OnZumpOnSection(string sectionName)
            {
                
                switch (sectionName)
                {
                    case "Billing":
                        Label lblBillingDetails = FindChild<Label>(App.Current.MainWindow, "lblBillingDetails");
                        if (lblBillingDetails != null)
                        {
                            Point point = lblBillingDetails.TranslatePoint(new Point(0, 0), App.Current.MainWindow);
                            var splitRightScrollViewer = FindChild<ScrollViewer>(App.Current.MainWindow, "splitRightScrollViewer");
                            if (splitRightScrollViewer != null)
                                splitRightScrollViewer.ScrollToVerticalOffset(point.Y);
                        }
    
                        break;
                    case "Agreements":
                        Telerik.Windows.Controls.RadGridView amgtGrid = FindChild<Telerik.Windows.Controls.RadGridView>(App.Current.MainWindow, "amgtGrid");
                        if (amgtGrid != null)
                        {
                            Point point = amgtGrid.TranslatePoint(new Point(0, 0), App.Current.MainWindow);
                            var splitRightScrollViewer = FindChild<ScrollViewer>(App.Current.MainWindow, "splitRightScrollViewer");
                            if (splitRightScrollViewer != null)
                                splitRightScrollViewer.ScrollToVerticalOffset(point.Y);
                        }
                        break;
                    case "Opportunities":
                        Telerik.Windows.Controls.RadGridView opportuityGrid = FindChild<Telerik.Windows.Controls.RadGridView>(App.Current.MainWindow, "opportuityGrid");
                        if (opportuityGrid != null)
                        {
                            Point point = opportuityGrid.TranslatePoint(new Point(0, 0), App.Current.MainWindow);
                            var splitRightScrollViewer = FindChild<ScrollViewer>(App.Current.MainWindow, "splitRightScrollViewer");
                            if (splitRightScrollViewer != null)
                                splitRightScrollViewer.ScrollToVerticalOffset(point.Y);
                        }
                        break;
                    case "Sites":
                        Telerik.Windows.Controls.RadGridView sitesGrid = FindChild<Telerik.Windows.Controls.RadGridView>(App.Current.MainWindow, "sitesGrid");
                        if (sitesGrid != null)
                        {
                            Point point = sitesGrid.TranslatePoint(new Point(0, 0), App.Current.MainWindow);
                            var splitRightScrollViewer = FindChild<ScrollViewer>(App.Current.MainWindow, "splitRightScrollViewer");
                            if (splitRightScrollViewer != null)
                                splitRightScrollViewer.ScrollToVerticalOffset(point.Y);
                        }
                        break;
                    case "Units":
                        Telerik.Windows.Controls.RadGridView unitGrid = FindChild<Telerik.Windows.Controls.RadGridView>(App.Current.MainWindow, "unitGrid");
                        if (unitGrid != null)
                        {
                            Point point = unitGrid.TranslatePoint(new Point(0, 0), App.Current.MainWindow);
                            var splitRightScrollViewer = FindChild<ScrollViewer>(App.Current.MainWindow, "splitRightScrollViewer");
                            if (splitRightScrollViewer != null)
                                splitRightScrollViewer.ScrollToVerticalOffset(point.Y);
                        }
                        break;
                    case "PurchaseOrders":
                        Telerik.Windows.Controls.RadGridView customerPurchaseOrderGrid = FindChild<Telerik.Windows.Controls.RadGridView>(App.Current.MainWindow, "customerPurchaseOrderGrid");
                        if (customerPurchaseOrderGrid != null)
                        {
                            Point point = customerPurchaseOrderGrid.TranslatePoint(new Point(0, 0), App.Current.MainWindow);
                            var splitRightScrollViewer = FindChild<ScrollViewer>(App.Current.MainWindow, "splitRightScrollViewer");
                            if (splitRightScrollViewer != null)
                                splitRightScrollViewer.ScrollToVerticalOffset(point.Y);
                        }
                        break;
                    case "Contacts":
                        Telerik.Windows.Controls.RadGridView contactsGrid = FindChild<Telerik.Windows.Controls.RadGridView>(App.Current.MainWindow, "contactsGrid");
                        if (contactsGrid != null)
                        {
                            Point point = contactsGrid.TranslatePoint(new Point(0, 0), App.Current.MainWindow);
                            var splitRightScrollViewer = FindChild<ScrollViewer>(App.Current.MainWindow, "splitRightScrollViewer");
                            if (splitRightScrollViewer != null)
                                splitRightScrollViewer.ScrollToVerticalOffset(point.Y);
                        }
                        break;
                    case "Invoices":
                        Telerik.Windows.Controls.RadGridView invoicGrid = FindChild<Telerik.Windows.Controls.RadGridView>(App.Current.MainWindow, "invoicGrid");
                        if (invoicGrid != null)
                        {
                            Point point = invoicGrid.TranslatePoint(new Point(0, 0), App.Current.MainWindow);
                            var splitRightScrollViewer = FindChild<ScrollViewer>(App.Current.MainWindow, "splitRightScrollViewer");
                            if (splitRightScrollViewer != null)
                                splitRightScrollViewer.ScrollToVerticalOffset(point.Y);
                        }
                        break;
                }
                
            }



    Friday, June 14, 2019 12:34 PM
  • code with bringIntoView(). Its not working.

        private async void OnZumpOnSection(string sectionName)
            {
                
                switch (sectionName)
                {
                    case "Billing":
                        Label lblBillingDetails = FindChild<Label>(App.Current.MainWindow, "lblBillingDetails");
                        if (lblBillingDetails != null)
                        {
                            lblBillingDetails.BringIntoView();
                            //Point point = lblBillingDetails.TranslatePoint(new Point(0, 0), App.Current.MainWindow);
                            //var splitRightScrollViewer = FindChild<ScrollViewer>(App.Current.MainWindow, "splitRightScrollViewer");
                            //if (splitRightScrollViewer != null)
                            //    splitRightScrollViewer.ScrollToVerticalOffset(point.Y);
                        }
    
                        break;
                    case "Agreements":
                        Telerik.Windows.Controls.RadGridView amgtGrid = FindChild<Telerik.Windows.Controls.RadGridView>(App.Current.MainWindow, "amgtGrid");
                        if (amgtGrid != null)
                        {
                            amgtGrid.BringIntoView();
                            //Point point = amgtGrid.TranslatePoint(new Point(0, 0), App.Current.MainWindow);
                            //var splitRightScrollViewer = FindChild<ScrollViewer>(App.Current.MainWindow, "splitRightScrollViewer");
                            //if (splitRightScrollViewer != null)
                            //    splitRightScrollViewer.ScrollToVerticalOffset(point.Y);
                        }
                        break;
                    case "Opportunities":
                        Telerik.Windows.Controls.RadGridView opportuityGrid = FindChild<Telerik.Windows.Controls.RadGridView>(App.Current.MainWindow, "opportuityGrid");
                        if (opportuityGrid != null)
                        {
                            opportuityGrid.BringIntoView();
                            //Point point = opportuityGrid.TranslatePoint(new Point(0, 0), App.Current.MainWindow);
                            //var splitRightScrollViewer = FindChild<ScrollViewer>(App.Current.MainWindow, "splitRightScrollViewer");
                            //if (splitRightScrollViewer != null)
                            //    splitRightScrollViewer.ScrollToVerticalOffset(point.Y);
                        }
                        break;
                    case "Sites":
                        Telerik.Windows.Controls.RadGridView sitesGrid = FindChild<Telerik.Windows.Controls.RadGridView>(App.Current.MainWindow, "sitesGrid");
                        if (sitesGrid != null)
                        {
                            sitesGrid.BringIntoView();
                            //Point point = sitesGrid.TranslatePoint(new Point(0, 0), App.Current.MainWindow);
                            //var splitRightScrollViewer = FindChild<ScrollViewer>(App.Current.MainWindow, "splitRightScrollViewer");
                            //if (splitRightScrollViewer != null)
                            //    splitRightScrollViewer.ScrollToVerticalOffset(point.Y);
                        }
                        break;
                    case "Units":
                        Telerik.Windows.Controls.RadGridView unitGrid = FindChild<Telerik.Windows.Controls.RadGridView>(App.Current.MainWindow, "unitGrid");
                        if (unitGrid != null)
                        {
                            unitGrid.BringIntoView();
                            Point point = unitGrid.TranslatePoint(new Point(0, 0), App.Current.MainWindow);
                            var splitRightScrollViewer = FindChild<ScrollViewer>(App.Current.MainWindow, "splitRightScrollViewer");
                            if (splitRightScrollViewer != null)
                                splitRightScrollViewer.ScrollToVerticalOffset(point.Y);
                        }
                        break;
                    case "PurchaseOrders":
                        Telerik.Windows.Controls.RadGridView customerPurchaseOrderGrid = FindChild<Telerik.Windows.Controls.RadGridView>(App.Current.MainWindow, "customerPurchaseOrderGrid");
                        if (customerPurchaseOrderGrid != null)
                        {
                            customerPurchaseOrderGrid.BringIntoView();
                            //Point point = customerPurchaseOrderGrid.TranslatePoint(new Point(0, 0), App.Current.MainWindow);
                            //var splitRightScrollViewer = FindChild<ScrollViewer>(App.Current.MainWindow, "splitRightScrollViewer");
                            //if (splitRightScrollViewer != null)
                            //    splitRightScrollViewer.ScrollToVerticalOffset(point.Y);
                        }
                        break;
                    case "Contacts":
                        Telerik.Windows.Controls.RadGridView contactsGrid = FindChild<Telerik.Windows.Controls.RadGridView>(App.Current.MainWindow, "contactsGrid");
                        if (contactsGrid != null)
                        {
                            contactsGrid.BringIntoView();
                            //Point point = contactsGrid.TranslatePoint(new Point(0, 0), App.Current.MainWindow);
                            //var splitRightScrollViewer = FindChild<ScrollViewer>(App.Current.MainWindow, "splitRightScrollViewer");
                            //if (splitRightScrollViewer != null)
                            //    splitRightScrollViewer.ScrollToVerticalOffset(point.Y);
                        }
                        break;
                    case "Invoices":
                        Telerik.Windows.Controls.RadGridView invoicGrid = FindChild<Telerik.Windows.Controls.RadGridView>(App.Current.MainWindow, "invoicGrid");
                        if (invoicGrid != null)
                        {
                            invoicGrid.BringIntoView();
                            //Point point = invoicGrid.TranslatePoint(new Point(0, 0), App.Current.MainWindow);
                            //var splitRightScrollViewer = FindChild<ScrollViewer>(App.Current.MainWindow, "splitRightScrollViewer");
                            //if (splitRightScrollViewer != null)
                            //    splitRightScrollViewer.ScrollToVerticalOffset(point.Y);
                        }
                        break;
                }
                
            }


    code which i am using. Its working. But not getting exact location. see code and suggest changes.

    private async void OnZumpOnSection(string sectionName)
            {
                
                switch (sectionName)
                {
                    case "Billing":
                        Label lblBillingDetails = FindChild<Label>(App.Current.MainWindow, "lblBillingDetails");
                        if (lblBillingDetails != null)
                        {
                            Point point = lblBillingDetails.TranslatePoint(new Point(0, 0), App.Current.MainWindow);
                            var splitRightScrollViewer = FindChild<ScrollViewer>(App.Current.MainWindow, "splitRightScrollViewer");
                            if (splitRightScrollViewer != null)
                                splitRightScrollViewer.ScrollToVerticalOffset(point.Y);
                        }
    
                        break;
                    case "Agreements":
                        Telerik.Windows.Controls.RadGridView amgtGrid = FindChild<Telerik.Windows.Controls.RadGridView>(App.Current.MainWindow, "amgtGrid");
                        if (amgtGrid != null)
                        {
                            Point point = amgtGrid.TranslatePoint(new Point(0, 0), App.Current.MainWindow);
                            var splitRightScrollViewer = FindChild<ScrollViewer>(App.Current.MainWindow, "splitRightScrollViewer");
                            if (splitRightScrollViewer != null)
                                splitRightScrollViewer.ScrollToVerticalOffset(point.Y);
                        }
                        break;
                    case "Opportunities":
                        Telerik.Windows.Controls.RadGridView opportuityGrid = FindChild<Telerik.Windows.Controls.RadGridView>(App.Current.MainWindow, "opportuityGrid");
                        if (opportuityGrid != null)
                        {
                            Point point = opportuityGrid.TranslatePoint(new Point(0, 0), App.Current.MainWindow);
                            var splitRightScrollViewer = FindChild<ScrollViewer>(App.Current.MainWindow, "splitRightScrollViewer");
                            if (splitRightScrollViewer != null)
                                splitRightScrollViewer.ScrollToVerticalOffset(point.Y);
                        }
                        break;
                    case "Sites":
                        Telerik.Windows.Controls.RadGridView sitesGrid = FindChild<Telerik.Windows.Controls.RadGridView>(App.Current.MainWindow, "sitesGrid");
                        if (sitesGrid != null)
                        {
                            Point point = sitesGrid.TranslatePoint(new Point(0, 0), App.Current.MainWindow);
                            var splitRightScrollViewer = FindChild<ScrollViewer>(App.Current.MainWindow, "splitRightScrollViewer");
                            if (splitRightScrollViewer != null)
                                splitRightScrollViewer.ScrollToVerticalOffset(point.Y);
                        }
                        break;
                    case "Units":
                        Telerik.Windows.Controls.RadGridView unitGrid = FindChild<Telerik.Windows.Controls.RadGridView>(App.Current.MainWindow, "unitGrid");
                        if (unitGrid != null)
                        {
                            Point point = unitGrid.TranslatePoint(new Point(0, 0), App.Current.MainWindow);
                            var splitRightScrollViewer = FindChild<ScrollViewer>(App.Current.MainWindow, "splitRightScrollViewer");
                            if (splitRightScrollViewer != null)
                                splitRightScrollViewer.ScrollToVerticalOffset(point.Y);
                        }
                        break;
                    case "PurchaseOrders":
                        Telerik.Windows.Controls.RadGridView customerPurchaseOrderGrid = FindChild<Telerik.Windows.Controls.RadGridView>(App.Current.MainWindow, "customerPurchaseOrderGrid");
                        if (customerPurchaseOrderGrid != null)
                        {
                            Point point = customerPurchaseOrderGrid.TranslatePoint(new Point(0, 0), App.Current.MainWindow);
                            var splitRightScrollViewer = FindChild<ScrollViewer>(App.Current.MainWindow, "splitRightScrollViewer");
                            if (splitRightScrollViewer != null)
                                splitRightScrollViewer.ScrollToVerticalOffset(point.Y);
                        }
                        break;
                    case "Contacts":
                        Telerik.Windows.Controls.RadGridView contactsGrid = FindChild<Telerik.Windows.Controls.RadGridView>(App.Current.MainWindow, "contactsGrid");
                        if (contactsGrid != null)
                        {
                            Point point = contactsGrid.TranslatePoint(new Point(0, 0), App.Current.MainWindow);
                            var splitRightScrollViewer = FindChild<ScrollViewer>(App.Current.MainWindow, "splitRightScrollViewer");
                            if (splitRightScrollViewer != null)
                                splitRightScrollViewer.ScrollToVerticalOffset(point.Y);
                        }
                        break;
                    case "Invoices":
                        Telerik.Windows.Controls.RadGridView invoicGrid = FindChild<Telerik.Windows.Controls.RadGridView>(App.Current.MainWindow, "invoicGrid");
                        if (invoicGrid != null)
                        {
                            Point point = invoicGrid.TranslatePoint(new Point(0, 0), App.Current.MainWindow);
                            var splitRightScrollViewer = FindChild<ScrollViewer>(App.Current.MainWindow, "splitRightScrollViewer");
                            if (splitRightScrollViewer != null)
                                splitRightScrollViewer.ScrollToVerticalOffset(point.Y);
                        }
                        break;
                }
                
            }



    Hi  AnkitKumar2016,    

    I suggest you can move the Third-party controls(Telerik) and upload a minimal runnable demo to OneDrive(Including your test material and remove all private information). We can download it and debugging(reproduce your issue). This will help us quickly analyze your problem. 

    If you have any question about Telerik, you can visit the Telerik Docs and Support center.

    Best regards

    Yong Lu


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Monday, June 17, 2019 5:07 AM
    Moderator
  • this  issue is not of telerik. All control is not of telerik, i have other control like stack panel, grid, button.. which i use. 

    I updated code. Please check and suggest the changes. 

    thanks


    Tuesday, June 18, 2019 5:02 AM
  • Check both code not working -

    private async void OnZumpOnSection(string sectionName)
            {
                
                switch (sectionName)
                {
                    case "Billing":
                        Label lblBillingDetails = FindChild<Label>(App.Current.MainWindow, "lblBillingDetails");
                        if (lblBillingDetails != null)
                        {
                            lblBillingDetails.BringIntoView();
                        }
    
                        break;
                    case "Agreements":
                        ListView amgtGrid = FindChild<ListView>(App.Current.MainWindow, "amgtGrid");
                        if (amgtGrid != null)
                        {
                            amgtGrid.BringIntoView();
                        }
                        break;
                    case "Opportunities":
                        ListView opportuityGrid = FindChild<ListView>(App.Current.MainWindow, "opportuityGrid");
                        if (opportuityGrid != null)
                        {
                            opportuityGrid.BringIntoView();
                        }
                        break;
    					case "Invoices":
                        ListView opportuityGrid = FindChild<ListView>(App.Current.MainWindow, "opportuityGrid");
                        if (opportuityGrid != null)
                        {
                            opportuityGrid.BringIntoView();
                        }
                        break;
    					case "Contacts":
                        ListView opportuityGrid = FindChild<ListView>(App.Current.MainWindow, "opportuityGrid");
                        if (opportuityGrid != null)
                        {
                            opportuityGrid.BringIntoView();
                        }
                        break;
               
                }
                
            }

    second logic

    private async void OnZumpOnSection(string sectionName)
            {
                
                switch (sectionName)
                {
                    case "Billing":
                        Label lblBillingDetails = FindChild<Label>(App.Current.MainWindow, "lblBillingDetails");
                        if (lblBillingDetails != null)
                        {
                            Point point = lblBillingDetails.TranslatePoint(new Point(0, 0), App.Current.MainWindow);
                            var splitRightScrollViewer = FindChild<ScrollViewer>(App.Current.MainWindow, "splitRightScrollViewer");
                            if (splitRightScrollViewer != null)
                                splitRightScrollViewer.ScrollToVerticalOffset(point.Y);
                        }
    
                        break;
                    case "Agreements":
                        ListView amgtGrid = FindChild<ListView>(App.Current.MainWindow, "amgtGrid");
                        if (amgtGrid != null)
                        {
                            Point point = amgtGrid.TranslatePoint(new Point(0, 0), App.Current.MainWindow);
                            var splitRightScrollViewer = FindChild<ScrollViewer>(App.Current.MainWindow, "splitRightScrollViewer");
                            if (splitRightScrollViewer != null)
                                splitRightScrollViewer.ScrollToVerticalOffset(point.Y);
                        }
                        break;
                    case "Opportunities":
                        ListView opportuityGrid = FindChild<ListView>(App.Current.MainWindow, "opportuityGrid");
                        if (opportuityGrid != null)
                        {
                            Point point = opportuityGrid.TranslatePoint(new Point(0, 0), App.Current.MainWindow);
                            var splitRightScrollViewer = FindChild<ScrollViewer>(App.Current.MainWindow, "splitRightScrollViewer");
                            if (splitRightScrollViewer != null)
                                splitRightScrollViewer.ScrollToVerticalOffset(point.Y);
                        }
                        break;
                    case "Sites":
                        ListView sitesGrid = FindChild<ListView>(App.Current.MainWindow, "sitesGrid");
                        if (sitesGrid != null)
                        {
                            Point point = sitesGrid.TranslatePoint(new Point(0, 0), App.Current.MainWindow);
                            var splitRightScrollViewer = FindChild<ScrollViewer>(App.Current.MainWindow, "splitRightScrollViewer");
                            if (splitRightScrollViewer != null)
                                splitRightScrollViewer.ScrollToVerticalOffset(point.Y);
                        }
                        break;
                    case "Units":
                        ListView unitGrid = FindChild<ListView>(App.Current.MainWindow, "unitGrid");
                        if (unitGrid != null)
                        {
                            Point point = unitGrid.TranslatePoint(new Point(0, 0), App.Current.MainWindow);
                            var splitRightScrollViewer = FindChild<ScrollViewer>(App.Current.MainWindow, "splitRightScrollViewer");
                            if (splitRightScrollViewer != null)
                                splitRightScrollViewer.ScrollToVerticalOffset(point.Y);
                        }
                        break;
                    case "PurchaseOrders":
                        ListView customerPurchaseOrderGrid = FindChild<ListView>(App.Current.MainWindow, "customerPurchaseOrderGrid");
                        if (customerPurchaseOrderGrid != null)
                        {
                            Point point = customerPurchaseOrderGrid.TranslatePoint(new Point(0, 0), App.Current.MainWindow);
                            var splitRightScrollViewer = FindChild<ScrollViewer>(App.Current.MainWindow, "splitRightScrollViewer");
                            if (splitRightScrollViewer != null)
                                splitRightScrollViewer.ScrollToVerticalOffset(point.Y);
                        }
                        break;
                    case "Contacts":
                        ListView contactsGrid = FindChild<ListView>(App.Current.MainWindow, "contactsGrid");
                        if (contactsGrid != null)
                        {
                            Point point = contactsGrid.TranslatePoint(new Point(0, 0), App.Current.MainWindow);
                            var splitRightScrollViewer = FindChild<ScrollViewer>(App.Current.MainWindow, "splitRightScrollViewer");
                            if (splitRightScrollViewer != null)
                                splitRightScrollViewer.ScrollToVerticalOffset(point.Y);
                        }
                        break;
                    case "Invoices":
                        ListView invoicGrid = FindChild<ListView>(App.Current.MainWindow, "invoicGrid");
                        if (invoicGrid != null)
                        {
                            Point point = invoicGrid.TranslatePoint(new Point(0, 0), App.Current.MainWindow);
                            var splitRightScrollViewer = FindChild<ScrollViewer>(App.Current.MainWindow, "splitRightScrollViewer");
                            if (splitRightScrollViewer != null)
                                splitRightScrollViewer.ScrollToVerticalOffset(point.Y);
                        }
                        break;
                }
                
            }

    Tuesday, June 18, 2019 5:09 AM
  • Hi   AnkitKumar2016,

    >>this  issue is not of telerik. All control is not of telerik, i have other control like stack panel, grid, button.. which i use. 
    I updated code. Please check and suggest the changes. 

    Please try the following code.

                 Point point = ScrollViewer1.TranslatePoint(new Point(), RadioButton7);
                ScrollViewer1.ScrollToVerticalOffset(ScrollViewer1.VerticalOffset - point.Y);

    Best regards

    Yong Lu


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Tuesday, June 18, 2019 8:31 AM
    Moderator