laptop and a wrench

Bug

Unable to create a composite control that includes the toolbar control.

Zuletzt veröffentlicht: August 25, 2014 No Product Found
Bug-ID-Nummer NIM000578
EingereichtDecember 13, 2005
Zuletzt geändertJune 5, 2024
Gilt fürNo Product Found
Gefunden in Version9.1
StatusWill Not Be Addressed

Zusätzliche Informationen

No Public Explanation

Workaround

The user is using the following workaround:The workaround is to not use INamingContainer.  To work around the problem of events getting lost by not using INamingContainer, you must override the FindControl() method of every container in the control container chain.  The overridden FindControl() must search it's controls as well as ask each of it's controls to subsequently search their controls.  Thus, FindControl() will end up searching down the whole chain of contained controls in order to find the control that was asked for.  You must also ensure that each control is manually given a unique ID.  Here is an example of my overridden FindControl():   public override Control FindControl(string id)  {   EnsureChildControls();   foreach (Control control in this.Controls)   {    if ( <a href="http://control.ID" target="_blank">control.ID</a> == id ) return control;    Control found = control.FindControl(id);    if ( found != null ) return found;   }   return base.FindControl (id);  }I'd obviously still rather use INamingContainer, but this seems to be working for now. 

Schritte zur Reproduzierung

Bug-ID: NIM000578

Software:

  • No Product Found

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln