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
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
7 Answers, 1 is accepted
0
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.
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.
0
Neil
Top achievements
Rank 1
answered on 16 Mar 2009, 06:12 PM
I have a similar need, but I would like to hide a sliding pane tab from VB - is this possible?
0
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.
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.
0
Pete
Top achievements
Rank 1
answered on 17 Mar 2009, 08:53 AM
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
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
0
Neil
Top achievements
Rank 1
answered on 18 Mar 2009, 03:08 PM
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
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
0
Accepted
Hi guys,
Straight to your questions:
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.
Straight to your questions:
- 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. - 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.
0
Neil
Top achievements
Rank 1
answered on 20 Mar 2009, 02:57 PM
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
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