Why only one Toolbar allowed in GridView.BottomBar?

  1. #1

    Why only one Toolbar allowed in GridView.BottomBar?

    Why is it that we are not allowed to add more than one toolbar at the bottom of a grid?

    What I would like to be able to do is something like this:
        <BottomBar>
            <ext:PagingToolbar ID="PagingToolBar" runat="server" StoreID="Store1" DisplayInfo="true" />
            <ext:MyCustomToolbar ID="CustomToolBar" runat="server" StoreID="Store1" />
        </BottomBar>
    However, I get the following error:

    <HR color=silver SIZE=1 width="100%">

    <H2>Only one Control allowed in this collection </H2>Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.InvalidOperationException: Only one Control allowed in this collection

    Source Error:

    <TABLE width="100%" bgColor=#ffffcc>
    <TBODY>
    <TR>
    <TD><CODE>Line 108: if (this.SingleItemMode &amp;&amp; this.Count > 0)
    Line 109: {
    Line 110: throw new InvalidOperationException("Only one Control allowed in this collection");
    Line 111: }
    Line 112:</PRE></CODE></TD></TR></TBODY></TABLE>
    Source File: C:\Program Files\Coolite\Coolite Toolkit - Version 0.7.0\Community Edition\Coolite.Toolkit.Source\Utility\ItemsCollec tion.cs Line: 110
  2. #2

    RE: Why only one Toolbar allowed in GridView.BottomBar?

    Hi,

    It is limitation of original ExtJS grid panel.
    Please see the following topic
    http://forums.ext.net/showthread.php...6189-21-1.aspx
    *
  3. #3

    RE: Why only one Toolbar allowed in GridView.BottomBar?

    What you are suggesting sounds very promissing but unfortunately, the BottomBar does not accept "ContainerLayout" elements. Here is the error message I get:

    <H2>Parser Error </H2>Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

    Parser Error Message: Coolite.Ext.Web.ToolbarCollection must have items of type 'Coolite.Ext.Web.ToolbarBase'. 'ext:ContainerLayout' is of type 'Coolite.Ext.Web.ContainerLayout'.

    Source Error:

    <TABLE width="100%" bgColor=#ffffcc>
    <TBODY>
    <TR>
    <TD><CODE>Line 144:
    Line 145: <BottomBar>
    Line 146: <ext:ContainerLayout runat="server">
    Line 147: <ext:Toolbar runat="server">
    Line 148: <Items></PRE></CODE></TD></TR></TBODY></TABLE>
    Source File: /WebSite1/Default.aspx Line: 146

  4. #4

    RE: Why only one Toolbar allowed in GridView.BottomBar?

    Please*peruse*this example

    This example doesn't contain layout in BottomBar. It is emulation of multiple toolbars


    <ContainerPanel>
    ** *<ContainerLayout>
    ** * * * TopBar
    ** * * * TopBar
    ** * * * TopBar
    ** * * * *Body
    ** * * * BottomBar
    ** * * * BottomBar

    ** * * * BottomBar

Similar Threads

  1. DirectEvent on Button - Content Not allowed?
    By Tbaseflug in forum 1.x Help
    Replies: 3
    Last Post: Jul 10, 2012, 8:29 PM
  2. [CLOSED] BottomBar - Custom Toolbar
    By majunior in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Apr 15, 2011, 1:35 PM
  3. Button in the GridView Header not allowed
    By lordofthexings in forum 1.x Help
    Replies: 2
    Last Post: Jun 08, 2010, 9:40 PM
  4. [CLOSED] Panel + BottomBar + Toolbar
    By Zarzand in forum Bugs
    Replies: 2
    Last Post: Mar 19, 2009, 5:32 PM
  5. [CLOSED] "Only one script manager is allowed"
    By alexp in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Feb 04, 2009, 7:49 AM

Posting Permissions