I have the below radstrip and i am adding the tabs in page load as shown below
In Page Load
On page load it shows expired tab selected but when doing postback the tab is not changing ....
Even trying to do in the tabClick as below but no luck
<telerik:RadTabStrip ID="RadTabStrip1" runat="server" Visible="false" OnTabClick="RadTabStrip1_TabClick" AutoPostBack="true" ></telerik:RadTabStrip>
<telerik:RadGrid ID="RadGrid1" runat="server" Width="100%" AllowPaging="true" AllowSorting="true" AutoGenerateColumns="false" PageSize="2"
ShowStatusBar="true" AllowFilteringByColumn="true" Skin="Sitefinity" OnItemDataBound="RadGrid1_ItemDataBound" Font-Size="9px" >
RadTabStrip1.Tabs.Clear();RadTabStrip1.Visible = true;tabExpired = new RadTab();tabExpired.Text = "Expired";tabExpiringIn7 = new RadTab();tabExpiringIn7.Text = "7 Days";RadTabStrip1.Tabs.Add(tabExpired);RadTabStrip1.Tabs.Add(tabExpiringIn7);if (!Page.IsPostBack){ qcer = new QReport(); hideColumnDT(qcer.getColumns()); dt = qcer.getDT("EXPIRED"); //tabExpired.Selected = true; RadTabStrip1.Tabs[0].Selected = true; RadTabStrip1.Tabs[0].BackColor = System.Drawing.Color.Red;}else{ //tabExpired.Selected = false; RadTabStrip1.Tabs[1].Selected = true; RadTabStrip1.Tabs.FindTabByText("7 Days").Selected = true; RadTabStrip1.Tabs[1].BackColor = System.Drawing.Color.Red; qcer = new QReport(); hideColumnDT(qcer.getColumns()); dt = qcer.getDT("7 DAYS"); }Even trying to do in the tabClick as below but no luck
protected void RadTabStrip1_TabClick(object sender, RadTabStripEventArgs e) { if (e.Tab.Text.Equals("7 Days")) { RadTabStrip1.Tabs[1].Selected = true; RadTabStrip1.Tabs.FindTabByText("7 Days").Selected = true; RadTabStrip1.Tabs[1].ForeColor = System.Drawing.Color.Red; e.Tab.Selected = true; e.Tab.Enabled = true; e.Tab.Focus(); }}
Please help