Toolbar as UserControl

  1. #1

    Toolbar as UserControl

    Hi guys,

    I have a UserControl, were is nothing more in than a ext:toolbar item and a little bit of code which shows or hides button etc.

    I tried to implement it into a Panel within a TabPanel but I have the following effects:
    - Toolbar displyed, content gone
    - Toolbar removed, content comes up

    The trick with the Panel into the toolbat section doesn't work.

    ??????

    How can I implement it in here (I need it in each Panel, not the TabPanel):

        <ext:TabPanel ID="TabPanel1" runat="server">
            <Items>
                <ext:Panel
                    ID="Tab_ContactInfo2"
                    runat="server"
                    Title="1. Client Contact Information">
                    <Content>
                        <asp:RadioButton ID="RadioButton1" GroupName="DeliveryAddress_RadioButton" runat="server" ClientIDMode="Predictable" Text="same as in Contact&nbsp;&nbsp;" Checked="true" AutoPostBack="False" />
                        <asp:RadioButton ID="RadioButton2" GroupName="DeliveryAddress_RadioButton" runat="server" ClientIDMode="Predictable" Text="other address" />
                    </Content>
                    <TopBar>
                        <ext:Toolbar ID="Toolbar2" runat="server">
                            <Content>
                                <uc:RFQToolBarControl runat="server" ID="RFQToolBarControl2" />
                            </Content>
                        </ext:Toolbar>
                    </TopBar>
                </ext:Panel>
    
                <ext:Panel
                    ID="Tab_QuoteInfo2"
                    runat="server"
                    Title="2. Quote Information">
                    <Items>
                    </Items>
                </ext:Panel>
    
                <ext:Panel
                    ID="Tab_Size2"
                    runat="server"
                    Title="3. Specifications">
                    <Items>
                    </Items>
                </ext:Panel>
    Regards & thanks in advance,

    Frank
    Last edited by Bubu; Dec 04, 2012 at 4:17 AM.
  2. #2
    Forgive me, it's 45 degrees today :))

    Found it. Both ways are working but which one is the better one? in TopBar or into the Content?

    Regards,

    Frank

        <ext:TabPanel ID="TabPanel1" runat="server">
            <Items>
                <ext:Panel
                    ID="Tab_ContactInfo2"
                    runat="server"
                    Title="1. Client Contact Information"
                    AutoHeight="true" AutoWidth="true">
                    <Content>
                        <uc:RFQToolBarControl runat="server" ID="RFQToolBarControl3" />
                        <asp:RadioButton ID="RadioButton1" GroupName="DeliveryAddress_RadioButton" runat="server" ClientIDMode="Predictable" Text="same as in Contact&nbsp;&nbsp;" Checked="true" AutoPostBack="False" />
                        <asp:RadioButton ID="RadioButton2" GroupName="DeliveryAddress_RadioButton" runat="server" ClientIDMode="Predictable" Text="other address" />
                    </Content>
                </ext:Panel>
    
                <ext:Panel
                    ID="Tab_QuoteInfo2"
                    runat="server"
                    Title="2. Quote Information">
                    <Items>
                    </Items>
                    <TopBar>                    
                        <ext:Toolbar ID="Toolbar2" runat="server" >
                            <Content>
                                <uc:RFQToolBarControl runat="server" ID="RFQToolBarControl2" />
                            </Content>
                        </ext:Toolbar>
                    </TopBar>
                </ext:Panel>
    
                <ext:Panel
                    ID="Tab_Size2"
                    runat="server"
                    Title="3. Specifications">
                    <Items>
                    </Items>
                </ext:Panel>

Similar Threads

  1. Replies: 1
    Last Post: May 29, 2013, 6:00 PM
  2. Replies: 8
    Last Post: Feb 15, 2012, 9:04 AM
  3. Replies: 0
    Last Post: Aug 03, 2011, 10:27 PM
  4. [CLOSED] [1.0] DirectMethod - Page . UserControl . UserControl
    By Patrick in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Feb 25, 2010, 9:33 AM
  5. [CLOSED] [8.2] UserControl as an item of toolbar?
    By mrozik in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Feb 12, 2010, 6:27 AM

Posting Permissions