OnClientDragStart

4 posts, 0 answers
  1. epicone
    epicone avatar
    2 posts
    Member since:
    Jul 2007

    Posted 17 Jul 2007 Link to this post

    When I try to print dock's zone id I get the following js error
    Error: sender.get_parent() has no properties.
    When I print the dock id everything goes fine.

    function OnClientDragStart(sender, eventArgs) {
    alert("You started dragging from Zone with ID " + sender.get_parent().get_id() + ".");
    }
  2. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 18 Jul 2007 Link to this post

    Hello epicone,

    RadDock's client-side object does not have get_parent() property. To get the id of the zone, which contains the dock you will have to use code like this:
    var zoneID = this.get_DockZoneID();

    if you need a reference to the zone's client-side object, use this:
    var zone = $find(zoneID);

    I hope this helps.

    Best wishes,
    Valeri Hristov (Senior Developer, MCSD)
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. epicone
    epicone avatar
    2 posts
    Member since:
    Jul 2007

    Posted 18 Jul 2007 Link to this post

    Thank you for your fast response!
    I will try your suggestion.
    Can you pass me a link to updated Raddock client object documentation?
    I read Prometheus Upgrading Instructions, Client-side API changesClient-side API changes, but seems to be outdated.
    Thank you again
    Esteban
  4. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 18 Jul 2007 Link to this post

    Hello Esteban,

    To my regret I must say that currently we don't have updated help content online. I will try to provide an updated CHM file next week.

    Sincerely yours,
    Valeri Hristov (Senior Developer, MCSD)
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top