We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Added view not visible in dockingRegion

I have a project that uses some of the same features of the "Portfolio Analyzer" code base.

It defines two views to go in the "DockingRegion" - one of the views is displayed and the other is not. I cannot work out why the missing view is not showing.

The main code is as follows:

        void worker_DoWork(object sender, DoWorkEventArgs e)
        {
            this.Dispatcher.Invoke(DispatcherPriority.Background, new Action(() =>
            {
                ShowWindow();
                this.moduleManager.LoadModule("BundleModule");
                this.moduleManager.LoadModule("BundleDetailsModule");
                activateView();
            }));

        }

        void worker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
        {
            win.Close();
        }

        void SelectedViewEventHandler(string ViewName)
        {
            if (ViewName == "Dashboard")
            {
                if(!worker.IsBusy)
                worker.RunWorkerAsync();
            }
        }

        private void activateView()
        {
            IRegion ribbonRegion = regionManager.Regions[RegionNames.RibbonRegion];

            object dview = ribbonRegion.GetView("dashboardView");
            ribbonRegion.Activate(dview);

            IRegion dockingRegion = regionManager.Regions[RegionNames.DockingRegion];
            object v1 = dockingRegion.GetView("bundleDetailsView");
            object v2 = dockingRegion.GetView("bundleView");

            dockingRegion.Activate(v2);
            dockingRegion.Activate(v1);
        }

The "bundleView" display as is full width, the "bundleDetailsView" does not show at all.

Unfortunately, I can't post all of the code on a public forum.



1 Reply

MS Marimuthu Sivalingam Syncfusion Team April 19, 2017 07:02 PM UTC

Hi Richard,

Thank you for contacting Syncfusion support.

We have checked with provided details in Portfolio Analyzer code. But we are unable to reproduce reported issue. So we have created an incident under your account to follow up on this to get the more details about code you have used in your application. So we request you to follow up on the incident created under your account. Please log on to our support website to check for further updates

https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents

Regards,
Marimuthu S.


Loader.
Live Chat Icon For mobile
Up arrow icon