Sliding Pane events

4 posts, 0 answers
  1. Juan
    Juan avatar
    6 posts
    Member since:
    Sep 2012

    Posted 25 Aug 2010 Link to this post

    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     
  2. Juan
    Juan avatar
    6 posts
    Member since:
    Sep 2012

    Posted 27 Aug 2010 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Dobromir
    Admin
    Dobromir avatar
    1633 posts

    Posted 27 Aug 2010 Link to this post

    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
  5. Juan
    Juan avatar
    6 posts
    Member since:
    Sep 2012

    Posted 27 Aug 2010 Link to this post

    Not a problem...I'm just glad I figured it out.  Was bugging me.  Thanks.
Back to Top