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

AJAX updates and Triggers with Form Template Edit form

2 Answers 48 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mario
Top achievements
Rank 1
Mario asked on 23 Oct 2008, 01:13 PM

Hello everyone,

Let’s talk about the example http://demos.telerik.com/ASPNET/Prometheus/Grid/Examples/DataEditing/TemplateFormUpdate/DefaultVB.aspx that is easily accessible to everyone and can perfectly be used to describe my doubt.

Let’s suppose we change the Field Region to State/Province and we want to change the data control to a combobox, filled with the US States. Let’s go further. We put this field before city, and we want to choose the city also in a combobox. But of course, not a simple one, we want the city combobox to show only cities from the US State selected and we must have it in AJAX way.

The way I can imagine it, is to put an AJAX Panel in the city combobox, with state combobox as trigger. Then, in the SelectedIndexChanged event of the state combobox, I make my query to the cities.

Ok, but how do I access this SelectedIndexChanged event, since it is part of my Edit in the RadGrid? I tried a lot of things, and even tried to find it with FindControl, looking each child item of every control and it never appears.

Or is there another simple way to do?

Please, I want really to stay in the example of this link. I don’t want to change to a different approach or an example that would have to redo everything. I think that what I want should be a common need to Form Template Edit Form.

Best Regards,

Mario

2 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 23 Oct 2008, 01:25 PM
Hi ,

Check out the demo link  demonstrating the same scenario:
http://demos.telerik.com/aspnet/Grid/Examples/Programming/AccessingCellsAndRows/DefaultCS.aspx

You can also check out the forum link below where Telerik team  have shared a  application on the same:

http://www.telerik.com/community/forums/thread/b311D-mhhcc.aspx


Thanks,
Princy
0
Mario
Top achievements
Rank 1
answered on 23 Oct 2008, 04:37 PM
Thank you Princy,

Based on the demo link you sent, I could make it work in my scenario. It helped a lot.

Best regards,

Mario
Tags
Grid
Asked by
Mario
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Mario
Top achievements
Rank 1
Share this question
or