|105238||Sep 20,2012 02:39 PM UTC||Sep 24,2012 10:37 AM UTC||WinForms||1|
we are using Syncfusion 9.302.0.61
under some reproducable circumstances we get an error when we activate a control within the dockingmanager:
"System.NullReferenceException was unhandled
Message="Object reference not set to an instance of an object."
at Syncfusion.Windows.Forms.Tools.AHTabControl.SetClientControlSize(DockStateControllerBase ddcbase, Rectangle rcbounds)
at Syncfusion.Windows.Forms.Tools.AHTabControl.ShowController(DockStateControllerBase ddcbase, Boolean banimate, Boolean bActivateAfterShow)
at Syncfusion.Windows.Forms.Tools.DockingManager.ActivateControl(Control ctrl)"
In the Dockingmanager, we have a grid. And whenever a row is added to the grid, the panel containing the grid shall be shown.
Works good, except when we add rows and immediately toggle the AutoHide-Option manually from the dockingmanagers context menu. Then, the exception above raises up.
The control-parameter is always the same, so is the dockingmanager. I cannot see which object is not instanciated as it seems to me to be inside Syncfusion.
For a workaround, i wrapped the ActivateControl-Call up in a try-catch. This is not elegant.
Is there a way to check if I can activate a control within the dokingmanager (e.g, "CanActivateControl(ctrl)")?
btw: what is AHTabControl?
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.