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

Sliding Pane events

3 Answers 22 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
Juan
Top achievements
Rank 1
Juan asked on 26 Aug 2010, 12:33 AM
Hello,

I'm using the SlidingZone and SlidingPanes with the Splitter control and I have an issue.  I would like to set the DockOnOpen option to true for each of my slidingpanes.  When a SlidingPane is docked or undocked, I need to have a function execute so a control in a adjoing container is resized properly.  So I'm using the OnClientDocked and OnClientUnDocked events to execute my custom function.  This works great when there are no SlidingPanes initially open, but when I go to select on another SlidingPane the code gets executed twice and causes a problem with .  When I put some alerts in, I noticed that a SlidingPane will get undocked and then the one I clicked on will get docked, thus leading to my function being executed twice.   What I really want to happen is when a user clicks the undock icon of a SlidingPane to execute my function and not when they are trying to open (dock) another SlidingPane (which undocks all other panes).  Is it possible to determine when a user clicks the undock icon?  Or a way with another event? 

Thanks in advance for any tips or advice.


Juan     

3 Answers, 1 is accepted

Sort by
0
Juan
Top achievements
Rank 1
answered on 27 Aug 2010, 02:31 PM
UPDATE:  I was able to figure it out.  i just added a timer function on the undock event with a boolean flag.   Should have thought of this earlier.
0
Dobromir
Telerik team
answered on 27 Aug 2010, 02:58 PM
Hi Juan,

We are glad that you were able to solve the problem yourself and apologize that we could not help you right away.

Please, do not hesitate to contact us again if you have any other questions.

Kind regards,
Dobromir
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Juan
Top achievements
Rank 1
answered on 27 Aug 2010, 03:43 PM
Not a problem...I'm just glad I figured it out.  Was bugging me.  Thanks.
Tags
Splitter
Asked by
Juan
Top achievements
Rank 1
Answers by
Juan
Top achievements
Rank 1
Dobromir
Telerik team
Share this question
or