This is a migrated thread and some comments may be shown as answers.

Automatically Dock Pane on Expansion

2 Answers 45 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
Philip
Top achievements
Rank 1
Philip asked on 29 May 2009, 03:38 PM
I was searching for a way to automatically dock a pane on expanding of the pane. I found the article below, but for some reason the javascript does not seem to be firing on the OnClientExpanded. Can somone point me in the right direction?


http://www.telerik.com/support/kb/aspnet-ajax/splitter/dock-a-radslidingpane-on-expand.aspx

<

 

telerik:RadSplitter id="RadSplitter1" runat="server" height="708" width="100%" CssClass="Splitter.Forest.css" ResizeMode="EndPane" BorderStyle="None" Skin="Forest" EnableEmbeddedSkins="False" >

 

 

<telerik:RadPane id="Radpane1" runat="server" width="22" scrolling="None" minwidth="22" MaxHeight="708" >

 


<

 

telerik:RadSlidingZone id="SlidingZone1" runat="server" width="22px" clicktoopen="true" >

 


 

<telerik:RadSlidingPane id="MBOM" title="MBOM" runat="server" width="500px" MaxHeight="708" OnClientBeforeExpand="beforeExpand" >

 


<

 

script type="text/javascript">

 

 

function beforeExpand(sender,eventArgs)

 

{

 

var slidingZone = $find("<%= SlidingZone1.ClientID %>");

 

slidingZone.dockPane(sender.get_id());

eventArgs.set_cancel(

true);

 

alert(

"Your text in the alert function.");

 

 

}

 

</script>

 


2 Answers, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 30 May 2009, 01:09 PM
Hello Philip,

I build up a test demo based on your code but unfortunately to no avail - I could not reproduce the problem and the event is fired as well as the alert message gets called. Would you please examine my test demo which is attached to the thread and tell me whether I am missing something?


All the best,
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
Dmitry
Top achievements
Rank 1
answered on 01 Jun 2009, 02:05 PM
Hey Philip,

Check for sure that you have the javascript function code going after declaring the sliding zone.
Tags
Splitter
Asked by
Philip
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Dmitry
Top achievements
Rank 1
Share this question
or