- Home
- Forum
- ASP.NET Web Forms (Classic)
- Tab script add tab and remove tab
Tab script add tab and remove tab
Hi Siang,
Thank you for using Syncfusion products.
Yes, By handling the Tabstrip object you can easily add and remove the tab manually. Please refer the following code snippet:
<code>
[CS]
protected void button2_Click(object Sender, Syncfusion.Web.UI.WebControls.Shared.ButtonAdvControl.ButtonAdvClickEventArgs e)
{
tab.Items.RemoveAt(tab.Items.Count-1);
}
protected void ButtonAdv1_Click(object Sender, Syncfusion.Web.UI.WebControls.Shared.ButtonAdvControl.ButtonAdvClickEventArgs e)
{
tab.Items.Add(new TabStripItem() { Text = "Sample" });
}
</code>
we have attached the sample solution for add and remove tab action.
Regards,
Muralishankar
Attachment: Tab_add_4918ce7b.zip
Is there any sample?
However when I click the button second time or more, the TabStripItem is create but the PageView is replaced the previous PageView.
No matter how many times I click the button, only the Items in the TapStrip are increasing but the total PageView in the MultiPage keep remain at 1.
Hi Siang,
Sorry about the inconvenience caused.
We are able to reproduce the reported issue "Multipage is not maintaining the pageview state on the post back" with Tab control. we have logged the reported issue as defect and working on it. In order to get fix, please contact us at Syncfusion Support or you may also open a support ticket by login in to direct trac account and mention this forum link for reference.
Kindly let us know if you have further queries.
Regards,
Muralishankar
- 4 Replies
- 2 Participants
-
SI Siang
- Sep 10, 2014 10:50 AM UTC
- Sep 17, 2014 05:13 AM UTC