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

Cannot find radtreeview on page load

1 Answer 65 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Shweta
Top achievements
Rank 1
Shweta asked on 29 Jul 2008, 12:31 PM
Hi,

We have an aspx page where we are using frameset. In first frame we've an user control containing radtreeview (eg RadTree1) and depending on selected node we are loading another aspx page in second frame.

The aspx page we are loading in second frame has an user control "usercontrol.ascx" which contains another radtreeview (eg RadTree2). This is a load on demand tree

We need to disable certain nodes of the second radtree while they are being created, ie. on load of the radtree, some nodes should appear to be disabled. This has to be done on the client side.

My problem is that when we try to find this second radtreeview (eg RadTree2) in "usercontrol.ascx", on page load, we get null in return.

We tried to to use $find function but it is also not working.

Kindly reply asap

Regards,
SK

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 29 Jul 2008, 12:48 PM
Hi Shweta,

Could you please paste here the code you are using to find RadTreeView? Keep in mind that you need to access the window object of the required frame in order to find ASP.NET Ajax components using the $find routine:

window.frames['frameName'].$find("userControl1_RadTreeView1");

Regards,
Albert
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Chart (Obsolete)
Asked by
Shweta
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or