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

HTML code not rendered in RadAjaxPanel

1 Answer 23 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Dick
Top achievements
Rank 1
Dick asked on 17 Oct 2008, 08:21 AM
My application loads ascx controls in a RadAjaxPanel. I can't use javascript inside the panel.

I am not a experienced in using Ajax. I think this is because the html-code is not rendered? For example. The ascx contains a RadGrid. I can't find the RadGrid control using javascript : var grid = window[radGridId]; or document.getElementById(radGridId);.

How do i detect controls loaded dynamically with AJAX?

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 20 Oct 2008, 06:38 AM
Hello Dick,

Try

var grid = $find("RadGridClientID");

$find returns the instance of a client-side control.

window[...] was used in our classic ASP.NET suite and is not applicable to ASP.NET AJAX, while getElementById does not return a control, but a DOM HTML element.


Best wishes,
Dimo
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Ajax
Asked by
Dick
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or