We're using an UltraTextEditor for data entry of email data. If we leave the CharacterCasing as Normal, or change it to Upper, there is no problem. When we ask the control to display its value in Lower, we have exceptions popping up when we select a parent object that has no data to display.
Our data model exposes the email address in a nested property. The control is bound to bound to the endpoint in a hierarchy like this: Company.Employee.Email
We expect that the Employee property might be returning Null.
I haven't been able to recreate the error with a simple example yet. If/when I do, I will post sample code.
Is there something different about the branch of Infragistics code that handles the Lower (remember, Upper and Normal are okay)?
We are using NetAdvantage 8.3.20083.1009
Thanks,John
Here are the pertinent exception details:
==================================================================================
System.NullReferenceException was unhandled. Message="Object reference not set to an instance of an object.". Source="Infragistics2.Win.UltraWinEditors.v8.3". StackTrace:. . at Infragistics.Win.UltraWinEditors.TextEditorControlBase.get_Text(). at Infragistics.Win.UltraWinEditors.TextEditorControlBase.get_Value(). .. at Infragistics.Win.UltraWinEditors.TextEditorControlOwnerBase.GetValue(Object ownerContext). at Infragistics.Win.EmbeddableEditorBase.GetDataFilterSourceValue(ConversionDirection direction, EmbeddableEditorOwnerBase owner, Object ownerContext). at Infragistics.Win.EmbeddableEditorBase.GetDataFilteredDestinationValue(ConversionDirection direction, Boolean& isValidConversion, EmbeddableEditorOwnerBase owner, Object ownerContext). at Infragistics.Win.EmbeddableEditorBase.GetDataFilteredDestinationValue(ConversionDirection direction, EmbeddableEditorOwnerBase owner, Object ownerContext). at Infragistics.Win.EditorWithText.GetElementText(EmbeddableUIElementBase element, Boolean ignorePasswordChar). at Infragistics.Win.EditorWithTextUIElement.PositionChildElements(). at Infragistics.Win.UIElement.VerifyChildElements(ControlUIElementBase controlElement, Boolean recursive). at Infragistics.Win.UIElement.VerifyChildElements(ControlUIElementBase controlElement, Boolean recursive). at Infragistics.Win.UIElement.DrawHelper(Graphics graphics, Rectangle invalidRectangle, Boolean doubleBuffer, AlphaBlendMode alphaBlendMode, Boolean clipText, Boolean forceDrawAsFocused, Boolean preventAlphaBlendGraphics). at Infragistics.Win.ControlUIElementBase.Draw(Graphics graphics, Rectangle invalidRectangle, Boolean doubleBuffer, AlphaBlendMode alphaBlendMode, Size elementSize, Boolean preventAlphaBlendGraphics). at Infragistics.Win.ControlUIElementBase.Draw(Graphics graphics, Rectangle invalidRectangle, Boolean doubleBuffer, AlphaBlendMode alphaBlendMode). at Infragistics.Win.UltraControlBase.OnPaint(PaintEventArgs pe). at Infragistics.Win.UltraWinEditors.TextEditorControlBase.OnPaint(PaintEventArgs e). .. at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs). at System.Windows.Forms.Control.WmPaint(Message& m). 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(Int32 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.Run(Form mainForm)
There should not be any difference internally between Upper and Lower case. This sounds like a bug to me. If you are able to duplicate this in a small sample project, you should Submit an incident to Infragistics Developer Support so they can check it out.
The small sample is in post #2 of this thread. Can your Support team pick it up from there?
It makes things a little easier for all parties concerned if you post an actual project that compiles without modifications. I was able to modify the code you posted to get it to compile and reproduce the bug; it will be addressed in a future release but if you want to receive a notification when the fix becomes available, you would have to submit an incident to Developer Support.
Thanks Brian.
We're not seeing this fixed in 9.1.
Will it be addressed soon?
Any idea when this will be shipped in a fix?
We have email controls that are in dire need of the repair.
Thanks
Hello,
After looking in to this issue, it appears that the issue did not make it in to the release of 9.1. You will need to install the latest service release of 9.1 for this fix to be applied.
If you have a registered key you can download the latest service release through the My Keys and Downloads section of the Infragistics website. If you do not have a key then please let me know and I will create a support case for you and provide the download to you through that case.