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 Developers, I did exactly the same workaround which Mr. Peter Felgate suggested. As an addition I had to set the property of the UltraCalendarCombo (UCC) control to'DateButtonAreaVisible = false' for hiding the button 'Today'.
The workaround: ultraCalendarCombo1.Value = e.Day.Date; Did not prevent the exception if the button today was pressed. Many thanks to Mr. Peter Felgate for his great hint.
RegardsFrank
Hello Fabian and all,
Thank you for posting in the Infragistics community.
Our development team is working on this issue, and once it is fixed I will update you through the forums with this information.
If you would like to receive a private notification, please let me know and I will create a private cases for the ones that would like.
Please feel free to let us know if you could do something else for you.
Is there a permanent fix for this issue.
I updated to the latest version of Netadvantage for winforms and now are getting several problems with applications in production.
Please advise.
Thanks.
Fabian Zandomeni
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.
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