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

[Solved] SelectedIndex change Event for Radcombobox inside a Radgrid

1 Answer 332 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ajit
Top achievements
Rank 1
Ajit asked on 23 May 2009, 10:37 AM
Hi,

i want to fire the selectedindexchange event handler of radcombo which is inside a radgrid control commandtemplate and edittemplate....

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 25 May 2009, 04:31 AM
Hi Ajit,

You may wire the SelectedIndexChanged event of the Combobox from either the design page or else from the code behind page. Set the AutoPostBack property of the RadComboBox to true. SelectedIndexChaned  event will fire once you change the Selection of the RadComboBox.Then in the SelectedIndexChaned event you may access the GridEditForm item as shown below.

CS:
 
protected
 void RadComboBox1_SelectedIndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e) 
    { 
        RadComboBox combo = (RadComboBox)o; 
        GridEditFormItem editform = (GridEditFormItem)combo.NamingContainer; 
    } 

Thanks
Shinu.

Tags
Grid
Asked by
Ajit
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or