hiding an ajax tabcontainer in java script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • usha535140
    New Member
    • Dec 2009
    • 6

    hiding an ajax tabcontainer in java script

    Hi,
    In the intial page I want to dispay a check box ie for the first time I should display the page with check box ,If the check box is checked i need to dispaly the tabcontainer with the tabs.If it is unchecked It should nt display any thing.

    I tried the following apporach :

    in aspx page for all the tabs of the container I used Enabled="false"

    later in the java script method I used set_Enabled(tru e) for all the tabs,
    with this am able to see the tabs(panels) ,but all the controls in each panel were disabled.

    Please suggest me a way to do it ASAP.
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    given that your description is somewhat vague, all I can suggest is manipulating the CSS display or visibility property of the tabs.

    Comment

    • usha535140
      New Member
      • Dec 2009
      • 6

      #3
      In aspx page for all the tabpanels I set Enabled="false" .
      In OnClick event of the check box calling a method hidetabs() where am using set_enable(true ).

      Please suggest me some other approach to do,my requirement is Intially that tabcontainer shouldnt be visible on the page,after checking the check box it should me made visible.

      Comment

      • Dormilich
        Recognized Expert Expert
        • Aug 2008
        • 8694

        #4
        In aspx page for all the tabpanels I set Enabled="false" .
        er, yes … whatever that may do.

        Please suggest me some other approach to do
        why? I find changing the CSS quite appealing.

        without someting to look at I’m as clueless as you.

        Comment

        • usha535140
          New Member
          • Dec 2009
          • 6

          #5
          hey,now I tried by looping through the panels and setting thet panels enable property through set_enabled(tru e),set_visible( false);It is working fine till some extent ie am able to get the tabcontainer +panels on clicking the checkbox for the second time.for the first time am geting the empty tab container.

          Comment

          • acoder
            Recognized Expert MVP
            • Nov 2006
            • 16032

            #6
            As suggested earlier, to get any useful help, you'll have to post some code.

            Comment

            Working...