Current filter:
                                You should refresh the page.
                                Support Center
                                0
                                  • Hi,

                                    as you can see in the attached project, the Datenavigator does no adjust to the TimeInterval in the bound SchedulerControl when you set the SchedulerControl-Property at runtime.

                                    To reproduce this, just scroll to any interval at the first scheduler and then change the tab.
                                    I've found no way to "refresh" the DateNavigator after assigning a new SchedulerControl.

                                    If you've a workaround I'll be glad to try it out.

                                    Thanks,

                                    Chris

                                DateNavigatorBug.zip
                                0

                                Hi Christian,

                                Until this bug is fixed, I suggest that you use the following workarounds to this issue:

                                1. A simple method: you can force DataNavigator to update its state by modifying the SchedulerOptionsBehavior.SelectOnRightClick property. Please refer to the code below:

                                	
                                [C#]
                                dateNavigator1.SchedulerControl = s; bool holdOption = s.OptionsBehavior.SelectOnRightClick; // force optionsChanged and recalc layout s.OptionsBehavior.SelectOnRightClick = !holdOption; s.OptionsBehavior.SelectOnRightClick = holdOption;

                                2. A more correct approach: you can implement a DateNavigator class descendant and create its instance in the InitializeComponent method. Then, assign the SchedulerControl to DateNavigator using the code below.

                                	
                                [C#]
                                // ... this.dateNavigator1 = new MyDateNavigator(); // code in InitializeComponent method // ... ((MyDateNavigator)dateNavigator1).SetSchedulerControl(s); // instead of DateNavigator.SchedulerControl = s // ... using DevExpress.XtraScheduler.Native; // ... public class MyDateNavigator : DevExpress.XtraScheduler.DateNavigator { public MyDateNavigator() { } public void SetSchedulerControl(SchedulerControl control) { SchedulerControl = control; ((MyDateNavigatorController)Controller).AfterChangeSchedulerControl(); } protected override DateNavigatorControllerBase CreateController() { return new MyDateNavigatorController(this); } } public class MyDateNavigatorController : DateNavigatorControllerWin { public MyDateNavigatorController(IDateNavigatorControllerOwner owner) : base(owner) { } public void AfterChangeSchedulerControl() { SyncNavigatorWithScheduler(); } }

                                Hope this helps.

                                Thanks,
                                Sergi

                                0

                                Hi Sergi,

                                thanks for the workaround.
                                Work's fine.

                                Chris

                                0

                                Hi Christian,

                                I am glad to hear that this workaround helps you. Thank you for letting us know of your progress. Please feel free to contact us if you have any difficulties. We will be happy to assist you.

                                Thanks,
                                Sergi

                                0

                                Fixed

                                To start a chat you should create a support ticket


                                If you need additional product information, write to us at info@devexpress.com or call us at +1 (818) 844-3383

                                FOLLOW US

                                DevExpress engineers feature-complete Presentation Controls, IDE Productivity Tools, Business Application Frameworks, and Reporting Systems for Visual Studio, along with high-performance HTML JS Mobile Frameworks for developers targeting iOS, Android and Windows Phone. Whether using WPF, Silverlight, ASP.NET, WinForms, HTML5 or Windows 8, DevExpress tools help you build and deliver your best in the shortest time possible.

                                Copyright © 1998-2014 Developer Express Inc.
                                All trademarks or registered trademarks are property of their respective owners