Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
690
UltraTextEditor throwing exception when CharacterCasing = Lower
posted

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)

 

 

Parents Reply Children
No Data