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

RadGrid Edittemplate Access Control Events

1 Answer 48 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Vme
Top achievements
Rank 1
Vme asked on 04 Apr 2008, 03:21 PM
In my Edit template for my RadGrid I have a drop down box that when the selected index changes I need to query a database for the change and populate a text box with the query results.  When I select the event for the dropdown box it creates the event for me, but I can't access any of the controls with just EventArgs.  I would think there has to be a better way to do this, but perhaps not?

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 04 Apr 2008, 03:28 PM
Hi Vme,

You can cast the sender to the control type which raised the event. Here is an example:

TableCell cell = ((DropDownList)sender).Parent; // TableCell
GridItem item = (GridItem)cell.Parent;

Greetings,
Vlad
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
Vme
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or