protected override void OnInit(EventArgs e)
 {
     base.OnInit(e);
     m_objControl = NavigationProvider.Instance(ProviderName);
     Control.ControlID = "ctl" + ID;
     Control.Initialize();
     spActions.Controls.Add(Control.NavigationControl);
 }
Exemple #2
0
 protected void InitializeNavControl(Control objParent, string strDefaultProvider)
 {
     if (String.IsNullOrEmpty(ProviderName))
     {
         ProviderName = strDefaultProvider;
     }
     m_objControl = NavigationProvider.Instance(ProviderName);
     Control.ControlID = "ctl" + ID;
     Control.Initialize();
     AssignControlProperties();
     objParent.Controls.Add(Control.NavigationControl);
 }
        protected override void OnInit( EventArgs e )
        {
            m_objControl = NavigationProvider.Instance( this.ProviderName );
            Control.PopulateOnDemand += new NavigationProvider.PopulateOnDemandEventHandler( Control_PopulateOnDemand );

            base.OnInit( e );
            Control.ControlID = "ctl" + this.ID;
            Control.Initialize();
            this.Controls.Add( Control.NavigationControl );
        }
Exemple #4
0
 /// -----------------------------------------------------------------------------
 /// <summary>
 /// OnInit runs during the controls initialisation phase
 /// </summary>
 /// <history>
 /// 	[cnurse]	01/02/2008  created
 /// </history>
 /// -----------------------------------------------------------------------------
 protected override void OnInit(EventArgs e)
 {
     _ProviderControl = NavigationProvider.Instance(ProviderName);
     ProviderControl.PopulateOnDemand += ProviderControl_PopulateOnDemand;
     base.OnInit(e);
     ProviderControl.ControlID = "ctl" + ID;
     ProviderControl.Initialize();
     Controls.Add(ProviderControl.NavigationControl);
 }
 protected void InitializeNavControl( Control objParent, string strDefaultProvider )
 {
     if( this.ProviderName.Length == 0 )
     {
         ProviderName = strDefaultProvider;
     }
     m_objControl = NavigationProvider.Instance( this.ProviderName );
     Control.ControlID = "ctl" + this.ID;
     Control.Initialize();
     AssignControlProperties();
     objParent.Controls.Add( Control.NavigationControl );
 }