Access Web User Control in PanelBar in code behind

1 posts, 0 answers
  1. Robert
    Robert avatar
    20 posts
    Member since:
    Jul 2013

    Posted 03 Jul 2013 Link to this post

    I have a PanelBar that I have a web user control in it.
    <telerik:RadPanelBar runat="server" ID="SearchOptionsPanel" Width="172px" Skin="CMASkin" EnableEmbeddedSkins="false"
        OnClientItemClicked="PanelBarItemClicked">
        <Items>
            <telerik:RadPanelItem Text="Search Options" Expanded="true" Value="MeasureOptions">
                <Items>
                    <telerik:RadPanelItem Text="">
                        <ItemTemplate>
                            <uc1:DischargeListCriteriaControl ID="DischargeListCriteriaCtrl" runat="server" />
                        </ItemTemplate>
                    </telerik:RadPanelItem>
                </Items>
            </telerik:RadPanelItem>
        </Items>
    </telerik:RadPanelBar>
    

    How do get to the control in the code behind of the .ascx file?  This doesn't seem to be an option.
    public DischargeListCriteriaControl DischargeListCriteriaControl
    {
        get
        {
            return this.DischargeListCriteriaCtrl;
        }
    }
    
Back to Top