[CLOSED] Tabs Add in c#

  1. #1

    [CLOSED] Tabs Add in c#

    hi,

    i have a tabpanel with three tabs(Tab1,Tab2,Tab3).

    button1 click event i have write a code ,




    TabPanel1.Remove(Tab3, true); its working.button2 click event i have write a code ,


    TabPanel1.Add(Tab3); but its not working for me.




    TabPanel1.Tabs.Add(Tab3); This is also not working for me.


    please tell me how to add Tab3 in Tabpanel1 in c#.


    Thank in advance.
  2. #2

    RE: [CLOSED] Tabs Add in c#

    Hi,

    The calling*TabPanel1.Remove(Tab3,*true); is destroy Tab. So you can't add this tab *back.


    If you want close/add tab on server side during AjaxEvent you should generate next js code


    Close tab.
    TabPanel1.AddScript("{0}.closeTab({1}, 'hide');", TabPanel1.ClientID, Tab3.ClientID);*


    Add existing tab
    TabPanel1.AddScript("{0}.addTab({1});", TabPanel1.ClientID, Tab3.ClientID);*



    You can see example which shows how add/close tabs on client side
    https://examples1.ext.net/#/TabPanel/Basic/Show_Hide/





  3. #3

    RE: [CLOSED] Tabs Add in c#



    TabPanel1.AddScript("{0}.closeTab({1}, 'Hide');", TabPanel1.ClientID, Remark.ClientID);
    TabPanel1.AddScript("{0}.addTab({1});", TabPanel1.ClientID, Remark.ClientID);

        if (this.Status != "Draft")
                {
                    this.SaveButton.Hide();
                    this.Remark.Add(Remark);
                }
                else
                {
                    this.SaveButton.Show();
                    this.Remark.Hide();
                }

    There didn't implement.


    Why?</PRE>
  4. #4

    RE: [CLOSED] Tabs Add in c#

    I am not sure if this feature is in 8.2 coolite yet TabPanel1.AddTab(tab) etc... apparently by version 1.0 it has been promised that Tabs will be able to be created on the server-side (code-behind) in .NET

Similar Threads

  1. [CLOSED] Move tabs Tabs Style Google Chrome
    By majunior in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: Apr 30, 2013, 12:58 PM
  2. [CLOSED] Movable Tabs
    By AABR in forum 1.x Legacy Premium Help
    Replies: 13
    Last Post: Apr 30, 2013, 12:57 PM
  3. [CLOSED] Parameter Url - Add Tabs
    By majunior in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Mar 16, 2011, 4:31 PM
  4. [CLOSED] HI how to add buttons for all tabs?
    By Etisbew in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Jul 14, 2009, 7:24 AM
  5. [CLOSED] Loop through tabs
    By reinout.mechant@imprss.be in forum 1.x Legacy Premium Help
    Replies: 9
    Last Post: Mar 27, 2009, 3:59 PM

Posting Permissions