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

RAdCombobox OnSelectedIndexChanged event button Click event

2 Answers 290 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Prasad
Top achievements
Rank 1
Prasad asked on 25 Sep 2012, 08:47 AM
Hi Team,

I am Using RadCombobox and List box and a button in a page. Radcombobox has selected index changed event. Filling listbox in this event . I am checking some items (not all) from code behind file after clicking button then Select index change event is firing before button click event. If i select all the elements from the code behind file then it is going well(button click event only fires). please give suggestion/solution as soon as possible for selectedindexchanged event occurring UN eventually.

Thanks,
Prasad.

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 25 Sep 2012, 12:19 PM
Hi Prasad,

Try modifying your code as follows to achieve your scenario.

C#:
protected void RadComboBox1_SelectedIndexChanged(object sender, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
{
  if (this.Request.Params.Get("__EVENTTARGET") == "RadComboBox1")
   {
      // Your Code
   }
}

Hope this helps.

Thanks,
Shinu.
0
Hari
Top achievements
Rank 1
answered on 24 Sep 2015, 11:36 AM
Thanks bro , that one line helped me :) 
Tags
ComboBox
Asked by
Prasad
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Hari
Top achievements
Rank 1
Share this question
or