i am using RadComboBox 2010 Q1 and i got a problem that on my button click a event OnSelectedIndexChanged of RadComboBox is fired automatically. i want to fire only if i change the value in radcombobox itself only.
The issue is also raised to several links but still not able the configure the issue. Below is the enviroment for the generation
Step - 1 Add Control to page.
Step - 2 Set the Following combobox properties to source page
<telerik:RadComboBox ID="RadComboBox1" runat="server" OnSelectedIndexChanged="RadComboBox1_SelectedIndexChanged">
Step - 3 Page OnLoad Code
Step - 4 Define Selecetd Index Changed
protected void RadComboBox1_SelectedIndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e)
string s = "ppppp";
now degug the page either page button click goes to Selected index changes event or first select the item and then hit the button onclick.
The Same issue is post to several links like
12 Answers, 1 is accepted
This issue originates from the fact that all of your Items have empty values. You can avoid it by setting some unique values to the Items, e.g. Value = Text.
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
I got the same problem, even if the values are corretly set.
But my case is different.
I got a page with the radcombobox (text and values set correctly). I change the item of combo and the event is fired as well.
i open a modal window with RadWindowManager. When I close the window the selectedindexchange is newly fired with the same RadComboBoxSelectedIndexChangedEventArgs used before... and if I close my window I don't change the combo...
the eventargs are set with same args (oldvalue, oldtext, text ecc)...
Any help? Thank you
Fabio - Nettunosolutions.
This points to the following issue: the page is posted back and the RadComboBox client-state field is not updated from the previous postback when the selected index actually has changed.
Can you capture the request/response pairs with FiddlerCap or FireBug and send post them here to inspect them?
the Telerik team
I am running 2011.2.915.40 of the the controls.
We haven't received any additional info about this problem in this thread. Please test with the latest version of RadControls or send us a sample project illustrating the problem via a support ticket - we will look into it.
the Telerik team
In my case, the postback was caused by other controls (a Timer or a RadAjaxManager) behind the scenes, so I had to screen for the the control that was causing the postback to then decide if I wanted to react to the event or not.
It's not elegant but is working for my case.... so, inside my Event Handler for SelectedIndexChanged:
If Request.Params("__EVENTTARGET") = MyRadComboBox.ClientID.Replace("_", "$") Then
'My RadComboBox caused this postback
'A different control caused this postback, ignore it
[quote]Not again - Q2 2015[/quote]
- Radcombobox with checkbox support enabled...
- OnPostBack of any control on the form, a button or text or radio button or any postback - it fires OnSelectedIndexChanged event for all the radcombobox controls on the page.
Q2 2014 release it was fixed... But in Q2 2015 release its back to haunt, cannot upgrade to new release as it will break the old behaviour...
Telerik support replies asking to change our entire code - wants us to use implement 'OnItemChecked' & 'OnCheckAllCheck' instead of one 'OnSelectedIndexChanged' event...
Why should it fire events for controls not in '__Target' ?
Hope to hear from support or someone soon...
To help us get a better idea of the scenario could you please try to reproduce the issue in the attached sample project and if any modifications are needed in order to reproduce it post them along with the steps that lead to the observed behavior?
Hello, thanks for your reply
We are still working on VS2010 and hence cannot open the project supplied, says it is incompatible with the vs version
Please reply back with vs2010 compatible source...
Please find attached a VS 2010 compatible web site.
hello two things in your sample:
1) Site.master is missing - cannot execute your sample provided - try 2
2) Rad - combo box is not bound to any data source - which is how combo boxes are used in real applications...
Please try to compile and build your project before sending across...
hope to hear from you soon...
The Site.master is not needed for testing this scenario as well as the whole Account folder. No manual compilation is required as the ASP.NET dynamically compiles web sites.
Please, find attached the modified sample page with added data binding to the RadComboBox controls. If you have issues running the previously attached web site you can use the .aspx and .aspx.cs files in a new project, as they contain all that is needed to test the behavior of the ComboBox SelectedIndexChanged event.