This question is locked. New answers and comments are not allowed.
I'm using RadControls for WinForms 2008.3 1321 (control version 8.2.0.0) and found the following issue:
The SelectedValueChanged event of the RadComboBox fires two times when the item selection changes. I'm able to reproduce this with the following small WinForms test project:
Form1.Designer.cs
Form1.cs
Can anybody confirm this issue?
Regards,
ReneMT
The SelectedValueChanged event of the RadComboBox fires two times when the item selection changes. I'm able to reproduce this with the following small WinForms test project:
Form1.Designer.cs
namespace RadComboTest |
{ |
partial class Form1 |
{ |
/// <summary> |
/// Required designer variable. |
/// </summary> |
private System.ComponentModel.IContainer components = null; |
/// <summary> |
/// Clean up any resources being used. |
/// </summary> |
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> |
protected override void Dispose(bool disposing) |
{ |
if (disposing && (components != null)) |
{ |
components.Dispose(); |
} |
base.Dispose(disposing); |
} |
#region Windows Form Designer generated code |
/// <summary> |
/// Required method for Designer support - do not modify |
/// the contents of this method with the code editor. |
/// </summary> |
private void InitializeComponent() |
{ |
this.radComboBox1 = new Telerik.WinControls.UI.RadComboBox(); |
((System.ComponentModel.ISupportInitialize)(this.radComboBox1)).BeginInit(); |
this.SuspendLayout(); |
// |
// radComboBox1 |
// |
this.radComboBox1.Location = new System.Drawing.Point(12, 12); |
this.radComboBox1.Name = "radComboBox1"; |
// |
// |
// |
this.radComboBox1.RootElement.AutoSizeMode = Telerik.WinControls.RadAutoSizeMode.WrapAroundChildren; |
this.radComboBox1.Size = new System.Drawing.Size(260, 20); |
this.radComboBox1.TabIndex = 0; |
this.radComboBox1.Text = "radComboBox1"; |
// |
// Form1 |
// |
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); |
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
this.ClientSize = new System.Drawing.Size(284, 264); |
this.Controls.Add(this.radComboBox1); |
this.Name = "Form1"; |
this.Text = "Form1"; |
((System.ComponentModel.ISupportInitialize)(this.radComboBox1)).EndInit(); |
this.ResumeLayout(false); |
this.PerformLayout(); |
} |
#endregion |
private Telerik.WinControls.UI.RadComboBox radComboBox1; |
} |
} |
Form1.cs
using System; |
using System.Diagnostics; |
using System.Windows.Forms; |
using Telerik.WinControls.UI; |
namespace RadComboTest |
{ |
public partial class Form1 : Form |
{ |
public Form1() |
{ |
InitializeComponent(); |
radComboBox1.Items.Add(new RadComboBoxItem("Item1", 1)); |
radComboBox1.Items.Add(new RadComboBoxItem("Item2", 2)); |
radComboBox1.Items.Add(new RadComboBoxItem("Item3", 3)); |
radComboBox1.SelectedValueChanged += new EventHandler(radComboBox1_SelectedValueChanged); |
} |
void radComboBox1_SelectedValueChanged(object sender, EventArgs e) |
{ |
Debug.Fail("radComboBox1_SelectedValueChanged"); |
} |
} |
} |
Can anybody confirm this issue?
Regards,
ReneMT