I updated to the latest release and now when I click on a calendarcombo date picker the following exception is thrown
Can't access the Value property when not in edit mode. source Infragistics4.Win.UltraWinSchedule.v12.2
at Infragistics.Win.UltraWinSchedule.CalendarCombo.CalendarComboEditor.SetEditorValueInternal(Object newVal) at Infragistics.Win.UltraWinSchedule.UltraCalendarCombo.SetAppropriateValue(Object editorValue) at Infragistics.Win.UltraWinSchedule.UltraCalendarCombo.HandleDateButtonAction(DateButton db) at Infragistics.Win.UltraWinSchedule.CalendarCombo.DateButtonUIElement.OnClick() at Infragistics.Win.ControlUIElementBase.ProcessMouseUpHelper(Object sender, MouseEventArgs e) at Infragistics.Win.ControlUIElementBase.ProcessMouseUp(Object sender, MouseEventArgs e) at System.Windows.Forms.Control.OnMouseUp(MouseEventArgs e) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg) at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData) at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.RunDialog(Form form) at System.Windows.Forms.Form.ShowDialog(IWin32Window owner) at Schedule.Management.MainForm.SearchForObjects() in C:\Dev\PS\CS\Schedule Management\MainForm.cs:line 692 at Schedule.Management.MainForm.NewSearch() in C:\Dev\PS\CS\Schedule Management\MainForm.cs:line 676 at Schedule.Management.MainForm.newSearch_Click(Object sender, EventArgs e) in C:\Dev\PS\CS\Schedule Management\MainForm.cs:line 667 at System.Windows.Forms.Control.OnClick(EventArgs e) at Infragistics.Win.Misc.UltraButtonBase.OnClick(EventArgs e) at Infragistics.Win.Misc.UltraButton.OnMouseUp(MouseEventArgs e) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
hi ddally, I have a workaround here:
the UltraCalendarCombo (UCC) control has it's CalenderInfo member set to an instance of the UltraCalendarInfo (UCI) class
I have attached a handler for the AfterActiveDayChanged event on the UCI member variable.
in this handler I set the value of the UCC contol as follows:
ultraCalendarCombo1.Value = e.Day.Date;
This prevents the error you described occurring
Regards
Peter Felgate
If i recall correctly when we did something similar it worked for the ActiveDay event, but it still fails on the selected day event.
The other item is it changes the Today buttons behavior when using active day vs selected day. This is from memory, so I will go back and try it for now we are going to be very distrustful of infragistics upgrades and are rolling that service pack out.