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

ajax with Java Script in user control- NOT WORKING

1 Answer 91 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Rita15
Top achievements
Rank 1
Rita15 asked on 15 Mar 2010, 04:55 AM
Hi,

    Here is what I am trying to do.
I am using Radgrid to display items. The RadGrid uses Web User Control to edit/display grid items.
the radGrid uses Master page.

I can not use java script inside user control( which uses AJAX).

What should I do to use Java script inside Ajaxified user control.
I would appreciate an example.

Thanks,
Rita


1 Answer, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 17 Mar 2010, 03:27 PM
Hello Rita15,

You can try wrapping the javascript into a RadScriptBlock and see if it works. Another option is to register the scripts in the user control Page_Load or Page_PreRender through the ScriptManager.RegisterStartupScript() static method.
You can also check this forum thread for samples on how to register the scripts.

Greetings,
Iana
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Ajax
Asked by
Rita15
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Share this question
or