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

get cancel command in dropdown selectedindexchanged event

2 Answers 111 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
abinav
Top achievements
Rank 1
abinav asked on 21 Jun 2011, 11:43 AM
how to get radgrid cancel command in radcombobox selectedindexchanged event

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 21 Jun 2011, 01:13 PM
Hello Abinav,

I am not qute sure about your requirement and I suppose you want to close the edit form on the selecterIndex changed event of the combobox. If that is the requirement try the following code snippet.
C#:
protected void RadCombobox1_SelectedIndexChanged(object sender, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
   {
       RadGrid1.MasterTableView.ClearEditItems(); 
   }

Or if you want to execute the cancel command explicitly, you can use fireCommand. Check out the following documentation for more on this.
fireCommand.

Thanks,
Shinu.
0
abinav
Top achievements
Rank 1
answered on 21 Jun 2011, 03:02 PM
hi thanks i used this and it works well

RadGrid1.MasterTableView.isiteminserted=false;
RadGrid1.Rebind();
Tags
General Discussions
Asked by
abinav
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
abinav
Top achievements
Rank 1
Share this question
or