Hide sliding pane tabs

8 posts, 1 answers
  1. Pete
    Pete avatar
    25 posts
    Member since:
    Jun 2008

    Posted 15 Mar 2009 Link to this post

    Hi,

    I have sliding zone and couple of panes which I want to control using RadMenu, so I want to hide all the sliding panes' tabs and expand/collapse panes using RadMenu. I managed to hide the tabs using CSS (display:none) and expand/collapse panes when clicking RadMenu items. Problem is that sliding panes are not placed where they should be and are rather opened on top left corner of the IE. Can you tell me is it possible to implement this kind of behaviour?

    Regards,
    Pete
  2. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 16 Mar 2009 Link to this post

    Hello Pete,

    The correct way to hide a RadSlidingPane's tab is to reference the sliding pane and call its hideTab() method which is listed below:

    http://www.telerik.com/help/aspnet-ajax/splitter_clientsideradslidingpane.html

    In case you still experience problems, please prepare a sample, fully runnable reproduction demo, open a new support ticket and send it to us along with screenshots with the problem marked and detailed explanations of the actual and the desired behavior.

    Kind regards,
    Svetlina
    the Telerik team


    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Neil
    Neil  avatar
    17 posts
    Member since:
    Sep 2007

    Posted 16 Mar 2009 Link to this post

    I have a similar need, but I would like to hide a sliding pane tab from VB - is this possible?
  5. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 17 Mar 2009 Link to this post

    Hello Neil ,

    The provided method is client javascript and you can not only use it but you do not have to change anything in it since the client code is the same no matter you use C# or VB.

    Kind regards,
    Svetlina
    the Telerik team


    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  6. Pete
    Pete avatar
    25 posts
    Member since:
    Jun 2008

    Posted 17 Mar 2009 Link to this post

    Hi,

    Thanks for you response Svetlina.

    I managed to hide the tabs using hideTab() but this doesn't hide the tab container "cell". I can of course set the height to 1px/1% but this is not enough. Is it also possible to somehow hide the tabs container or radpane where sliding zone is located?  

    Regards,
    Pete
  7. Neil
    Neil  avatar
    17 posts
    Member since:
    Sep 2007

    Posted 18 Mar 2009 Link to this post

    I think you misunderstood me. I realise that this code is javascript and does not depend on vb / c#. However, we have a need to set the pane's tab (or the whole tab) to visible or invisible from our VB code, depending on other VB events. I cannot find a way to change the visible setting in VB code - is this possible? We would prefer to avoid dipping in and out of java here when the other events are all VB-managed.

    Also, we have created a handler for the Rad Ajax manager and a RadAjaxManager_ajaxRequest sub to change some other vb settings when specific panes are selected. As well as some other changes that are "fired" bu this, we want to change the text is some labels in one of the panes, but we cannot get these to show after this request has been handled. If the request is raised by the onclientbeforeexpand event of one of the panes, and the label that needs to change is in the same pane, what would be the initiator and target we should set in the AJAX manager?

    Best regards,   Neil
  8. Answer
    Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 19 Mar 2009 Link to this post

    Hi guys,

    Straight to your questions:

    1. Petri, I am not exactly sure what element you want to hide - as far as I understood, you want to hide the whole tabs container. If so, you can do this by using the following code:

       
       $find("<%=RadSlidingZone1.ClientID %>").getTabsContainer().style.display = "none"

      If you do not need to hide the element dynamically with javascript, you can also do this by finding the exact element with IEDevToolBar or Firebug tools, extract its class and override the display to be none.
    2. Neil, there is no server method or property which can be used to hide a RadSlidingPane's tab. However, you can use the client approach and execute the script from the server in the desired server event. Executing a script from the server is a common task and not related to RadControls, you should choose the best way for your case, e.g use the ScriptManager or ClientScriptManager's RegisterStartupScript method, etc.

      As to updating the splitter with AJAX in different scenarios, you can find a detailed KB article below:
      http://www.telerik.com/support/kb/aspnet-ajax/splitter/controlling-the-behavior-of-radsplitter-or-a-splitter-pane-with-radajax.aspx


    Kind regards,
    Svetlina
    the Telerik team


    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  9. Neil
    Neil  avatar
    17 posts
    Member since:
    Sep 2007

    Posted 20 Mar 2009 Link to this post

    Dear Svetlina,
    We have found a satisfactory solution by setting the whole pane to visible=false in our VB code and then making it visible when we need it. Thanks for your help,   Neil
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017