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

Calling Javascript in an EditFormSettings UserControl

2 Answers 62 Views
Grid
This is a migrated thread and some comments may be shown as answers.
bdk0172
Top achievements
Rank 1
bdk0172 asked on 05 Aug 2010, 02:58 PM
I've got a grid that uses EditFormSettings with a UserControl.  In the UserControl, I have two asp:dropdownlists.  When an item in the first dropdown is selected, I'm attempting to call a web service through JavaScript within the UserControl to return the items for the second dropdown.  This is not working and what I've noticed when I view the source of my page, the JavaScript code is not present.  Can someone provide an example of how to do this?

Thanks!

2 Answers, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 11 Aug 2010, 08:01 AM
Hello Brian,

If the script is inside UserControl and RadGrid is ajaxified I would suggest you to wrap all your scripts inside that UserControl with RadScriptBlock.

Regards,
Nikolay
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
0
bdk0172
Top achievements
Rank 1
answered on 11 Aug 2010, 01:57 PM
That was it.  Thank you!!!
Tags
Grid
Asked by
bdk0172
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
bdk0172
Top achievements
Rank 1
Share this question
or