Apr 02, 2009, 12:34 PM
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:
<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 && 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
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 && 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