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

Finding the RadDock or DockZone

1 Answer 36 Views
Dock
This is a migrated thread and some comments may be shown as answers.
NaturalCause
Top achievements
Rank 1
NaturalCause asked on 15 Jun 2010, 02:23 AM

Hey,

I'm currently using version 2010.1.309.35

I can't "find" rad docks or zones in JavaScript like what is shown http://demos.telerik.com/aspnet-ajax/dock/examples/clientsideapi/defaultcs.aspx

var zone = $find('ctl00_ph_rdzMain'); 

This ALWAYS returns null. 

The HTML has the element:

<div id="ctl00_ph_rdzMain" class="RadDockZone RadDockZone_Default rdVertical " style="border-color:Transparent;border-width:1px;border-style:solid;width:870px;min-width:10px;min-height:10px;"

$find is working fine tho because I can find any other telerik control. The only ones I can't fine a anything to do with docking.

What am i doing wrong :(

1 Answer, 1 is accepted

Sort by
0
NaturalCause
Top achievements
Rank 1
answered on 15 Jun 2010, 03:20 AM

Well it seems telerik controls don't play nice with jQuery. So any finding of controls done on document ready with jQuery fail...

Now i know what that problem is. Next problem is when i find the dock. 

get_closed()

Always returns false. Why?

Edit: Oh because I should be checking get_collapsed, :)

Tags
Dock
Asked by
NaturalCause
Top achievements
Rank 1
Answers by
NaturalCause
Top achievements
Rank 1
Share this question
or