Disable / Enabel Drag or Dock during a Postback

3 posts, 0 answers
  1. t g
    t g avatar
    3 posts
    Member since:
    Feb 2006

    Posted 21 Feb 2008 Link to this post

    Hello,
    is it possible to disable a RadDock during a AjaxPostback? I tried something like :

    function OnClientDragEnd(sender, eventArgs)

    {
    sender.set_enableDrag =

    false;

    sender.set_closed =

    true;

    sender_dockMode = 0;

    }

    but nothing heppens.  The Dock ist still enabled and opend?

    Thanks for your Help

  2. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 22 Feb 2008 Link to this post

    Hi,

    I recommend you to use the set_enableDrag() method to allow/forbid the RadDock dragging.
    You can find a simple demonstration of this in the attached file. In it the necessary ajax request is simulated by using the Thread.Sleep() method in the code behind.


    Regards,
    Svetlina
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. t g
    t g avatar
    3 posts
    Member since:
    Feb 2006

    Posted 22 Feb 2008 Link to this post

    Thanks for your answer and example. Know everythink works fine.
Back to Top