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
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
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