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
270
Not able to find user control inside explorer bar
posted

 I have user control inside explorer bar .I have written code below to find user control

ItemTemplate temp = this.WebExplorerBar1.FindTemplateById("ReportTemplateID");

 

 

Control t = (Control)temp.FindControl("NavigationCtrlID");

But I am always getting t as null.

Can anyone please help me what going wrong in my code?

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

<

 

 

ig:WebExplorerBar ID="WebExplorerBar1" runat="server" OnItemSelected

="WebExplorerBar1_ItemSelected">

 

 

 

<Groups>

 

 

 

<ig:ExplorerBarGroup GroupContentsHeight="" Text="Home" Value="Home" ImageUrl="~/images/home_icon.png" >

 

 

 

</ig:ExplorerBarGroup>

 

 

 

<ig:ExplorerBarGroup GroupContentsHeight="" Text="Reports" Value="Report" ImageUrl="~/images/reports_icon.png">

 

 

 

<Items>

 

 

 

<ig:ExplorerBarItem TemplateId="ReportTemplateID" />

 

 

 

</Items>

 

 

 

</ig:ExplorerBarGroup>

 

 

 

<ig:ExplorerBarGroup GroupContentsHeight="" Text="CRM" ImageUrl="~/images/crm_icon.png">

 

 

 

</ig:ExplorerBarGroup>

 

 

 

<ig:ExplorerBarGroup GroupContentsHeight="" Text="Forecasting" ImageUrl="~/images/forecasting_icon.png">

 

 

 

</ig:ExplorerBarGroup>

 

 

 

<ig:ExplorerBarGroup GroupContentsHeight="" Text="Ad-Hoc" ImageUrl="~/images/adhoc_icon.png">

 

 

 

</ig:ExplorerBarGroup>

 

 

 

</Groups>

 

 

 

<Templates>

 

 

 

<ig:ItemTemplate TemplateID="ReportTemplateID" >

 

 

 

<Template>

 

 

 

<nav:NavigationCtrl ID="NavigationCtrlID" runat="server" />

 

 

 

</Template>

 

 

 

</ig:ItemTemplate>

 

 

 

</Templates>

 

 

 

 

<AutoPostBackFlags ItemSelected="On" />

 

 

 

 

</ig:WebExplorerBar>

 

Parents
No Data
Reply Children
No Data