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

OnClientDragStart

3 Answers 70 Views
Dock
This is a migrated thread and some comments may be shown as answers.
epicone
Top achievements
Rank 1
epicone asked on 17 Jul 2007, 08:50 PM
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() + ".");
}

3 Answers, 1 is accepted

Sort by
0
Valeri Hristov
Telerik team
answered on 18 Jul 2007, 06:34 AM
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
0
epicone
Top achievements
Rank 1
answered on 18 Jul 2007, 01:04 PM
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
0
Valeri Hristov
Telerik team
answered on 18 Jul 2007, 01:13 PM
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
Tags
Dock
Asked by
epicone
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
epicone
Top achievements
Rank 1
Share this question
or