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

Respond to events from within a radgrid edit form

1 Answer 173 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Paul asked on 22 Jun 2016, 12:32 PM

Ok, I've been banging my head against my computer trying to get this to work for a couple days, and been searching these forums for anybody having the same problem, but so far no luck.  Here's the situation. Seems simple enough:

1. I have a Radgrid.

2. The radgrid has an editform

3. The editform has many controls, dropdown lists, textboxes etc.

4. Controls INSIDE THE EDIT FORM have to change in response to user activity INSIDE THE EDIT FORM. For example, dropdownlist2 has to be loaded with different options in response to the user's selecting options in dropdownlist1. These two dropdown lists are ON THE EDIT FORM, they are NOT columns in the radgrid.

The problem seems to be that I cannot respond to events, such as "ItemChanged" or "TextChanged" or any other event of a control that is INSIDE AN EDITFORM.

I'm making all the upper case letters because every no matter how I word my Google search on this problem, I get answered related to how to respond to events of controls that are in COLUMNS of the RADGRID, which is NOT my problem. The Radgrid's ItemCommand event does not fire when a control is clicked on that is INSIDE THE EDITFORM.

Any help would be most appreciated. Thanks!

- Paul

 

1 Answer, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 24 Jun 2016, 12:06 PM
Hello Paul,

In order to implement the feature you can approach similar to the one illustrated in the following example:


For reference I am attaching a sample project where the feature is outlined. Give the sample a try and let me know how it works for you.


Regards,
Viktor Tachev
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Ivan James
Top achievements
Rank 1
commented on 04 Oct 2022, 09:37 AM

Hi. He is asking how to do it inside the edit form from a radgrid. Do you have updates on this? Thanks.
Attila Antal
Telerik team
commented on 07 Oct 2022, 08:08 AM

Hi Ivan,

Did you have the chance to test the attachment sent by Viktor?

That WebForms page contains a RadGrid with two ComboBoxes in its EditForm. Selecting an item in one of the ComboBoxes changes the data source of the other.

You can also check out the following Forum thread discussing Cascading DropDowns in the Grid's EditForm: How to have cascading rad drop down lists in rad grid

Tags
Grid
Asked by
Paul
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Share this question
or