Hi,
I have default.aspx page contains RadTabStrip that shows 3 tabs .
So i Added RadPanelBar inside for each RadMultiPage like this ..
Now I am adding usercontrol to first tab page directly ( refer above code ) and usercontrol is adding dynamically for 2nd and 3rd tab like this..
Each user control have grids and bind using sqldatasource wizard.
Now If I run the application then
First tab showing grid and paging and sorting is working fine. because usercontrol added in aspx page directly.
but usercontrols inside 2nd and 3rd tabs showing grid but sorting and paging not working. ( Cannot see grids in 2nd & 3rd tabs )
Please find the attachment for images..
How can i do solve this problem ?
https://docs.google.com/document/d/1xGOv--xxpzI26_N6M-UFTTnJyipMBIrQHpdMExF4enY/edit
Thanks for your help..
I have default.aspx page contains RadTabStrip that shows 3 tabs .
So i Added RadPanelBar inside for each RadMultiPage like this ..
<table> <tr> <td> <telerik:RadTabStrip runat="server" ID="RadTabStrip1" Orientation="HorizontalTop" SelectedIndex="0" MultiPageID="RadMultiPage1"> <Tabs> <telerik:RadTab Text="Category Summary"> </telerik:RadTab> <telerik:RadTab Text="Category Summary Details"> </telerik:RadTab> <telerik:RadTab Text="Department Summary Details"> </telerik:RadTab> </Tabs> </telerik:RadTabStrip> <telerik:RadMultiPage runat="server" ID="RadMultiPage1" SelectedIndex="0" Height="500px" Width="500px"> <telerik:RadPageView runat="server" ID="RadPageView3"> <asp:Label ID="Label1" runat="server" Text="Sample page"></asp:Label> <uc:grid ID="radgrid" runat="server" /> </telerik:RadPageView> <telerik:RadPageView runat="server" ID="RadPageView1"> <telerik:RadPanelBar runat="server" ID="pnlBarCatSummDetails" Width="900" AllowCollapseAllItems="true" ExpandMode="MultipleExpandedItems"> </telerik:RadPanelBar> </telerik:RadPageView> <telerik:RadPageView runat="server" ID="RadPageView2"> <telerik:RadPanelBar runat="server" ID="pnlBarDeptSummDetails" Width="900" AllowCollapseAllItems="true" ExpandMode="MultipleExpandedItems"> </telerik:RadPanelBar> </telerik:RadPageView> </telerik:RadMultiPage> </td> </tr> <tr> <td> </td> </tr> </table>Now I am adding usercontrol to first tab page directly ( refer above code ) and usercontrol is adding dynamically for 2nd and 3rd tab like this..
Protected Sub RadTabStrip1_TabClick(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadTabStripEventArgs) Handles RadTabStrip1.TabClick If RadTabStrip1.SelectedIndex = 0 Then
' Already added in aspx page ( not a dynamic one ) ElseIf RadTabStrip1.SelectedIndex = 1 Then Dim i As Integer = 0 pnlBarCatSummDetails.Items.Clear() Do While (i < 2) Dim dateItem As New RadPanelItem() dateItem.Text = "Test page" + i.ToString() pnlBarCatSummDetails.Items.Add(dateItem) Dim control As New RadPanelItem() Dim Panel1 As New Panel() Dim myControl As Control = LoadControl("CategorySummary.ascx") Panel1.Controls.Add(myControl) control.Controls.Add(Panel1) dateItem.Items.Add(control) i = i + 1 Loop ElseIf RadTabStrip1.SelectedIndex = 2 Then Dim i As Integer = 0 pnlBarDeptSummDetails.Items.Clear() Do While (i < 2) Dim dateItem As New RadPanelItem() dateItem.Text = "Dept Test page" + i.ToString() pnlBarDeptSummDetails.Items.Add(dateItem) Dim control As New RadPanelItem() Dim Panel1 As New Panel() Dim myControl As Control = LoadControl("DepartmentSummary.ascx") Panel1.Controls.Add(myControl) control.Controls.Add(Panel1) dateItem.Items.Add(control) i = i + 1 Loop End If End SubEach user control have grids and bind using sqldatasource wizard.
Now If I run the application then
First tab showing grid and paging and sorting is working fine. because usercontrol added in aspx page directly.
but usercontrols inside 2nd and 3rd tabs showing grid but sorting and paging not working. ( Cannot see grids in 2nd & 3rd tabs )
Please find the attachment for images..
How can i do solve this problem ?
https://docs.google.com/document/d/1xGOv--xxpzI26_N6M-UFTTnJyipMBIrQHpdMExF4enY/edit
Thanks for your help..