Hello,
We have an application that uses an UltraTree for user's to select specific nodes. The list is usually somewhat short, but we've had cases where this case is large enough to require a scrollbar. When this is the case, when the user clicks a node, we get this error:
See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************System.ArgumentException: Can't access the 'Value' property when not in edit mode at Infragistics.Win.EmbeddableEditorBase.get_Value() at Infragistics.Win.EditorWithText.get_Value() at OptiBreak.RunSelection.utReleases_Click(Object sender, EventArgs e) in c:\Jobs\Product\Opti\Opti-Break\OptiBreak\RunSelection.cs:line 568 at System.Windows.Forms.Control.OnClick(EventArgs e) at Infragistics.Win.UltraControlBase.OnClick(EventArgs 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)
************** Loaded Assemblies **************mscorlib Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.34011 built by: FX45W81RTMGDR CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll----------------------------------------Microsoft.VisualStudio.HostingProcess.Utilities Assembly Version: 12.0.0.0 Win32 Version: 12.0.21005.1 CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualStudio.HostingProcess.Utilities/12.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.HostingProcess.Utilities.dll----------------------------------------System.Windows.Forms Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll----------------------------------------System.Drawing Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll----------------------------------------System Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.34003 built by: FX45W81RTMGDR CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll----------------------------------------Microsoft.VisualStudio.HostingProcess.Utilities.Sync Assembly Version: 12.0.0.0 Win32 Version: 12.0.21005.1 CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualStudio.HostingProcess.Utilities.Sync/12.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.HostingProcess.Utilities.Sync.dll----------------------------------------Microsoft.VisualStudio.Debugger.Runtime Assembly Version: 12.0.0.0 Win32 Version: 12.0.21005.1 CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualStudio.Debugger.Runtime/12.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Debugger.Runtime.dll----------------------------------------vshost32 Assembly Version: 12.0.0.0 Win32 Version: 12.0.21005.1 CodeBase: file:///C:/Jobs/Product/Opti/Opti-Break/OptiBreak/bin/Debug/OptiBreak.vshost.exe----------------------------------------Infragistics2.Shared.v11.2 Assembly Version: 11.2.20112.2050 Win32 Version: 11.2.20112.2050 CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Infragistics2.Shared.v11.2/11.2.20112.2050__7dd5c3163f2cd0cb/Infragistics2.Shared.v11.2.dll----------------------------------------Infragistics2.Win.Misc.v11.2 Assembly Version: 11.2.20112.2050 Win32 Version: 11.2.20112.2050 CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Infragistics2.Win.Misc.v11.2/11.2.20112.2050__7dd5c3163f2cd0cb/Infragistics2.Win.Misc.v11.2.dll----------------------------------------Infragistics2.Win.UltraWinEditors.v11.2 Assembly Version: 11.2.20112.2050 Win32 Version: 11.2.20112.2050 CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Infragistics2.Win.UltraWinEditors.v11.2/11.2.20112.2050__7dd5c3163f2cd0cb/Infragistics2.Win.UltraWinEditors.v11.2.dll----------------------------------------Infragistics2.Win.UltraWinGrid.v11.2 Assembly Version: 11.2.20112.2050 Win32 Version: 11.2.20112.2050 CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Infragistics2.Win.UltraWinGrid.v11.2/11.2.20112.2050__7dd5c3163f2cd0cb/Infragistics2.Win.UltraWinGrid.v11.2.dll----------------------------------------Infragistics2.Win.UltraWinListView.v11.2 Assembly Version: 11.2.20112.2050 Win32 Version: 11.2.20112.2050 CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Infragistics2.Win.UltraWinListView.v11.2/11.2.20112.2050__7dd5c3163f2cd0cb/Infragistics2.Win.UltraWinListView.v11.2.dll----------------------------------------Infragistics2.Win.UltraWinTabControl.v11.2 Assembly Version: 11.2.20112.2050 Win32 Version: 11.2.20112.2050 CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Infragistics2.Win.UltraWinTabControl.v11.2/11.2.20112.2050__7dd5c3163f2cd0cb/Infragistics2.Win.UltraWinTabControl.v11.2.dll----------------------------------------Infragistics2.Win.UltraWinTree.v11.2 Assembly Version: 11.2.20112.2050 Win32 Version: 11.2.20112.2050 CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Infragistics2.Win.UltraWinTree.v11.2/11.2.20112.2050__7dd5c3163f2cd0cb/Infragistics2.Win.UltraWinTree.v11.2.dll----------------------------------------Infragistics2.Win.v11.2 Assembly Version: 11.2.20112.2050 Win32 Version: 11.2.20112.2050 CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Infragistics2.Win.v11.2/11.2.20112.2050__7dd5c3163f2cd0cb/Infragistics2.Win.v11.2.dll----------------------------------------System.Core Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll----------------------------------------System.Data Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll----------------------------------------System.Deployment Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Deployment/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Deployment.dll----------------------------------------System.Design Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Design/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Design.dll----------------------------------------System.DirectoryServices Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.DirectoryServices/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.DirectoryServices.dll----------------------------------------System.Runtime.Serialization.Formatters.Soap Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Serialization.Formatters.Soap/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Runtime.Serialization.Formatters.Soap.dll----------------------------------------System.ServiceProcess Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.ServiceProcess/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.ServiceProcess.dll----------------------------------------System.Web Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.34009 built by: FX45W81RTMGDR CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.Web/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Web.dll----------------------------------------System.Xml Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll----------------------------------------stdole Assembly Version: 7.0.3300.0 Win32 Version: 7.00.9466 CodeBase: file:///C:/WINDOWS/assembly/GAC/stdole/7.0.3300.0__b03f5f7f11d50a3a/stdole.dll----------------------------------------OptiBreak Assembly Version: 3.13.1300.0 Win32 Version: 3.13.1300.0 CodeBase: file:///C:/Jobs/Product/Opti/Opti-Break/OptiBreak/bin/Debug/OptiBreak.EXE----------------------------------------GlassOpt Assembly Version: 3.13.1300.0 Win32 Version: 3.13.1300.0 CodeBase: file:///C:/Jobs/Product/Opti/Opti-Break/OptiBreak/bin/Debug/GlassOpt.DLL----------------------------------------GMConfig Assembly Version: 3.13.1300.0 Win32 Version: 3.13.1300.0 CodeBase: file:///C:/Jobs/Product/Opti/Opti-Break/OptiBreak/bin/Debug/GMConfig.DLL----------------------------------------FeneVision.Opti.ShapeLibMgr Assembly Version: 10.1.2020.1 Win32 Version: 10.1.2020.1 CodeBase: file:///C:/Jobs/Product/Opti/Opti-Break/OptiBreak/bin/Debug/FeneVision.Opti.ShapeLibMgr.DLL----------------------------------------FtSplashScreen Assembly Version: 3.13.1300.0 Win32 Version: 3.13.1300.0 CodeBase: file:///C:/Jobs/Product/Opti/Opti-Break/OptiBreak/bin/Debug/FtSplashScreen.DLL----------------------------------------GMDBData Assembly Version: 3.13.1300.0 Win32 Version: 3.13.1300.0 CodeBase: file:///C:/Jobs/Product/Opti/Opti-Break/OptiBreak/bin/Debug/GMDBData.DLL----------------------------------------SQLDataAccess Assembly Version: 3.13.1300.0 Win32 Version: 3.13.1300.0 CodeBase: file:///C:/Jobs/Product/Opti/Opti-Break/OptiBreak/bin/Debug/SQLDataAccess.DLL----------------------------------------FeneVision.Translations Assembly Version: 10.11.6300.0 Win32 Version: 10.11.6300.0 CodeBase: file:///C:/Jobs/Product/Opti/Opti-Break/OptiBreak/bin/Debug/FeneVision.Translations.DLL----------------------------------------Opti.Common Assembly Version: 3.13.1300.0 Win32 Version: 3.13.1300.0 CodeBase: file:///C:/Jobs/Product/Opti/Opti-Break/OptiBreak/bin/Debug/Opti.Common.DLL----------------------------------------System.Transactions Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.Transactions/v4.0_4.0.0.0__b77a5c561934e089/System.Transactions.dll----------------------------------------System.EnterpriseServices Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.EnterpriseServices/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll----------------------------------------System.Configuration Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll----------------------------------------System.Numerics Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll----------------------------------------System.ServiceModel Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.ServiceModel/v4.0_4.0.0.0__b77a5c561934e089/System.ServiceModel.dll----------------------------------------Microsoft.VisualBasic Assembly Version: 10.0.0.0 Win32 Version: 12.0.20806.33440 built by: FX45W81RTMREL CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll----------------------------------------Microsoft.GeneratedCode Assembly Version: 1.0.0.0 Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll----------------------------------------LaserControl Assembly Version: 3.13.1300.0 Win32 Version: 3.13.1300.0 CodeBase: file:///C:/Jobs/Product/Opti/Opti-Break/OptiBreak/bin/Debug/LaserControl.DLL----------------------------------------GMTracking Assembly Version: 3.13.1300.0 Win32 Version: 3.13.1300.0 CodeBase: file:///C:/Jobs/Product/Opti/Opti-Break/OptiBreak/bin/Debug/GMTracking.DLL----------------------------------------GMReports Assembly Version: 3.13.1300.0 Win32 Version: 3.13.1300.0 CodeBase: file:///C:/Jobs/Product/Opti/Opti-Break/OptiBreak/bin/Debug/GMReports.DLL----------------------------------------GMComponents Assembly Version: 3.13.1300.0 Win32 Version: 3.13.1300.0 CodeBase: file:///C:/Jobs/Product/Opti/Opti-Break/OptiBreak/bin/Debug/GMComponents.DLL----------------------------------------Infragistics2.Win.UltraWinExplorerBar.v11.2 Assembly Version: 11.2.20112.2050 Win32 Version: 11.2.20112.2050 CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Infragistics2.Win.UltraWinExplorerBar.v11.2/11.2.20112.2050__7dd5c3163f2cd0cb/Infragistics2.Win.UltraWinExplorerBar.v11.2.dll----------------------------------------SKCLNET Assembly Version: 4.6.0.4 Win32 Version: 4.6.0.4 CodeBase: file:///C:/Jobs/Product/Opti/Opti-Break/OptiBreak/bin/Debug/SKCLNET.DLL----------------------------------------Microsoft.VisualC Assembly Version: 10.0.0.0 Win32 Version: 12.00.20806.33440 built by: FX45W81RTMREL CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualC/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualC.dll----------------------------------------HeglaXYZ Assembly Version: 3.13.1300.0 Win32 Version: 3.13.1300.0 CodeBase: file:///C:/Jobs/Product/Opti/Opti-Break/OptiBreak/bin/Debug/HeglaXYZ.DLL----------------------------------------Accessibility Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll----------------------------------------System.Xaml Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xaml/v4.0_4.0.0.0__b77a5c561934e089/System.Xaml.dll----------------------------------------
************** JIT Debugging **************To enable just-in-time (JIT) debugging, the .config file for thisapplication or computer (machine.config) must have thejitDebugging value set in the system.windows.forms section.The application must also be compiled with debuggingenabled.
For example:
<configuration> <system.windows.forms jitDebugging="true" /></configuration>
When JIT debugging is enabled, any unhandled exceptionwill be sent to the JIT debugger registered on the computerrather than be handled by this dialog box.
Codewise, we pretty much just have some code that fires when the user clicks a node, it loops through all other parent nodes and their children and unchecks them.
I noticed that the AfterDataNodesCollectionPopulated event fires during this loop (and I also noticed that when I scroll it fires again). I've also gathered that if I open the screen, and scroll first, the user no longer has the issue. Once the issue happens once, it doesn't happen again until the screen is reloaded.
Any input or suggestions would be greatly appreciated, thanks!
We had to do some other things but based on your info and suggestions we were able to get it working.
Thank you so much for the (very quick) help!
Thank you for your feedback. Please let me know about the results of applying of my suggestion to your real application.
I am waiting for your feedback.
Thanks for the update, that makes sense.
I will try to port to the real application, but part of the problem is that the structure of the UltraTree we are using is parent and child (so there is a list like I have, and then 1-N child nodes). When the user checks a parent, it checks all children.
There are certain nodes that must be checked by themselves, so the application loops through the list and unchecks everything else. The problem at least makes sense now, because in that case it would use the editor for a node that is off screen.
I will port and update if there are issues, at least it makes sense to me now. Thanks!
Hello ,
Thank you for the provided sample. I’ve reviewed it and modified it, I am updating directly cell value instead of the editor resolved, since in order to be able to edit the value of the editor it must be in edit mode. If owner editor is not visible on the screen then it want has UIElemnt and it cannot enters in edit mode. So please try to apply this approach in your real application and let me know if this helps.
Please let me know if you have any further questions.
Here it is, thanks.