I upgraded my code from Q2 to Q3 and I have a radsplitter, and I get this error :
SplitterItemsCollection must contain SplitterItem objects
It works fine in Q2
Here is my code:
SplitterItemsCollection must contain SplitterItem objects
SplitterItemsCollection must contain SplitterItem objects |
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.ArgumentException: SplitterItemsCollection must contain SplitterItem objects |
Source Error: |
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
Stack Trace: |
[ArgumentException: SplitterItemsCollection must contain SplitterItem objects] |
Telerik.Web.UI.SplitterItemsCollection.AddAt(Int32 index, Control child) +98 |
Telerik.Web.UI.RadAjaxControl.MoveUpdatePanel(Control initiator, Control updated) +214 |
Telerik.Web.UI.RadAjaxControl.PerformRender() +502 |
Telerik.Web.UI.RadAjaxControl.OnPageRender(HtmlTextWriter writer, Control page) +1849 |
Telerik.Web.UI.RadAjaxControl.RenderPageInAjaxMode(HtmlTextWriter writer, Control page) +158 |
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +256 |
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19 |
System.Web.UI.Page.Render(HtmlTextWriter writer) +29 |
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27 |
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99 |
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25 |
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1266 |
-------------------------------------------------------------------------------- |
Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053 |
It works fine in Q2
Here is my code:
<telerik:RadSplitter ID= "mainSplitter" runat="server" Orientation="Vertical" ResizeMode="AdjacentPane" width="100%" |
VisibleDuringInit="false" Height="100%" ResizeWithParentPane="true"> |
<telerik:RadPane id="leftPane" runat="server" width="22" minwidth="22" Scrolling="none"> |
<telerik:RadSlidingZone id="SlidingZone1" runat="server" clicktoopen="true" DockedPaneId="sPackages" ExpandedPaneId="sPackages" > |
<telerik:RadSlidingPane id="sPackages" title="Packages" runat="server" width="215" Scrolling="Both" EnableResize="false" > |
<telerik:RadGrid ID="packageGrid" runat="server" Width="200px" |
DataSourceID="SqlDataSourcePackages" AutoGenerateColumns="False" |
GridLines="None" > |
<ClientSettings> |
<Selecting AllowRowSelect="true" EnableDragToSelectRows="true" /> |
<ClientEvents OnRowSelected="rowSelected" /> |
</ClientSettings> |
<MasterTableView> |
<Columns> |
<telerik:GridBoundColumn DataField="package_id" UniqueName="package_id" Display="false"> |
</telerik:GridBoundColumn> |
<telerik:GridBoundColumn DataField="package_name" UniqueName="package_name" HeaderText="Package name" > |
</telerik:GridBoundColumn> |
</Columns> |
</MasterTableView> |
<FilterMenu EnableTheming="True"> |
<CollapseAnimation Duration="200" Type="OutQuint" /> |
</FilterMenu> |
</telerik:RadGrid> |
</telerik:RadSlidingPane> |
</telerik:RadSlidingZone> |
</telerik:RadPane> |
<telerik:RadSplitBar id="Radsplitbar3" runat="server" collapsemode="Forward" /> |
<telerik:RadPane id="contentPane" runat="server" Scrolling="Y" > |
<telerik:RadSplitter ID= "embeddedSplitter" runat="server" Orientation="Horizontal" ResizeMode="EndPane" width="100%" |
VisibleDuringInit="false" Height="100%" ResizeWithParentPane="true"> |
<telerik:RadPane ID="topPane" runat="server" ContentUrl="contentviewer.aspx?price=Y"> |
</telerik:RadPane> |
<telerik:RadSplitBar id="Radsplitbar2" runat="server" collapsemode="Both" /> |
<telerik:RadPane ID="bottomPane" runat="server" Scrolling="Y"> |
<table> |
<tr> |
<td> |
Build your package here<br /> |
</td> |
</tr> |
<tr> |
<td> |
<telerik:RadGrid ID="buildPackageGrid" runat="server" |
DataSourceID="SqlDataSourceselectPackage" AllowFilteringByColumn="True" |
AllowPaging="True" GridLines="None" > |
<ClientSettings> |
</ClientSettings> |
<MasterTableView runat="server" AutoGenerateColumns="False" PageSize="12" DataKeyNames="mid_id,mid_type_id"> |
<GroupByExpressions> |
<telerik:GridGroupByExpression> |
<GroupByFields> |
<telerik:GridGroupByField FieldName="mid_type_name" SortOrder="Descending"></telerik:GridGroupByField> |
</GroupByFields> |
<SelectFields> |
<telerik:GridGroupByField FieldAlias="mid_type_name" FieldName="mid_type_name" HeaderText="Mid type" /> |
</SelectFields> |
</telerik:GridGroupByExpression> |
</GroupByExpressions> |
<RowIndicatorColumn> |
<HeaderStyle Width="20px" /> |
</RowIndicatorColumn> |
<ExpandCollapseColumn> |
<HeaderStyle Width="20px" /> |
</ExpandCollapseColumn> |
<Columns> |
<telerik:GridBoundColumn UniqueName="mid_id" DataField="mid_id" Display="false"></telerik:GridBoundColumn> |
<telerik:GridBoundColumn UniqueName="mid_type_id" DataField="mid_type_id" Display="false"></telerik:GridBoundColumn> |
<telerik:GridBoundColumn UniqueName="mid_name" DataField="mid_name" HeaderText="Package Contents" ></telerik:GridBoundColumn> |
<telerik:GridBoundColumn UniqueName="package_name" DataField="package_name" HeaderText="Package Name" SortExpression="package_name" Display="false"></telerik:GridBoundColumn> |
<telerik:GridBoundColumn UniqueName="mid_type_name" DataField="mid_type_name" HeaderText="Mid type" SortExpression="mid_type_name"></telerik:GridBoundColumn> |
</Columns> |
<PagerStyle Mode="NextPrevNumericAndAdvanced" /> |
</MasterTableView> |
<FilterMenu EnableTheming="True"> |
<CollapseAnimation Duration="200" Type="OutQuint" /> |
</FilterMenu> |
</telerik:RadGrid><br /><br /> |
<asp:Button ID="deleteButton" runat="server" Text="Click to unselect" OnClientClick="return clickedDelete();" /> |
</td> |
<td> |
<asp:Button ID="selectButton" runat="server" Text="Click to select" OnClientClick="return clickedSelect();" /><br /><br /><br /> |
<asp:Button ID="boundButton" runat="server" Text="Click after grid is bound" OnClientClick="return clickedBound();" /> |
</td> |
</tr> |
</table> |
</telerik:RadPane> |
</telerik:RadSplitter> |
</telerik:RadPane> |
</telerik:RadSplitter> |