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

find RadPane on client side

2 Answers 87 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
Shen Li
Top achievements
Rank 1
Shen Li asked on 15 Feb 2013, 03:09 AM
hi Telerik,

I try to call $find('<%= radPane1.ClientID %>') after page is rendered on client side javascript function, but it is always null -- can't find it. Any idea what i did wrong?

thanks,

roger

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 15 Feb 2013, 05:38 AM
Hi,

Try accessing the pane as shown below.
JS:
function OnClientClick()
 {
        var spl = $find("<%=RadSplitter1.ClientID%>");
        var pane=spl.GetPaneById("RadPane1");
}

Thanks,
Shinu
0
Shen Li
Top achievements
Rank 1
answered on 15 Feb 2013, 06:35 AM
hi Shinu,

Thanks for your support!

I figured out that calling the $find function in pageLoad() works as telerik Rad Controls are created on the Sys.Application.init event.

thanks,

roger
Tags
Splitter
Asked by
Shen Li
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Shen Li
Top achievements
Rank 1
Share this question
or