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

[Solved] How do I use a RadAjaxPanel in this scenario?

1 Answer 87 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Boris
Top achievements
Rank 1
Boris asked on 19 Mar 2013, 05:13 PM
Please ignore this post.  Just found the answer.

http://www.telerik.com/community/forums/aspnet-ajax/grid/radgrad-how-to-populate-dropdown-with-selection-from-another-dropdown-in-editform.aspx

Apologies to one and all (and I clearly need to find some more coffee...)

I have a RadGrid that edits records using the FormTemplate method.  So far, so good. 

Now I've been told that I have to add a dropdown and that SelectedIndexChange event must update two other controls in the editing FormTemplate (only those two controls).  This is intended to be the same as the setup in another screen that's already working, although not within a RadGrid.

What I've done so far is put that dropdown and the other two controls, RadComboBoxes, in a RadAjaxPanel within the FormTemplate.
(My Ajax experience so far is limited to putting controls within a RadAjaxPanel so they don't affect the rest of the page.)

The SelectedIndexChange fires but at this point I have no idea how to access the other dropdowns in order to refresh them.

Suggestions?

1 Answer, 1 is accepted

Sort by
0
Accepted
Milena
Telerik team
answered on 22 Mar 2013, 12:47 PM
Hello,

You can access the controls of FormTemplate as use the following approach:
(sender as WebControl).NamingContainer.FindControl("ControlID")

More information on this matter could be found here.

Kind regards,
Milena
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
Boris
Top achievements
Rank 1
Answers by
Milena
Telerik team
Share this question
or