Hello,
In our application we use RadSpinEditor with binding.
Now we notice a problem with the binding of the control:
When we update the control by the keyboard, then leave the control by tab, returning to the spinEditor and updating another value, the new value does'nt save – when leaving the control the last value returns.
Looking forward to your reply.
Here is a sample code:
static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Form1()); } } public class Form1 : Form { List<Class1> l = new List<Class1>(); public Form1() { InitializeComponent(); l.Add(new Class1()); } private void Form1_Load(object sender, EventArgs e) { this.radSpinEditor1.DataBindings.Add("Value", l, "Number"); } #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.radSpinEditor1 = new Telerik.WinControls.UI.RadSpinEditor(); this.button1 = new System.Windows.Forms.Button(); ((System.ComponentModel.ISupportInitialize)(this.radSpinEditor1)).BeginInit(); this.SuspendLayout(); // // radSpinEditor1 // this.radSpinEditor1.Location = new System.Drawing.Point(77, 39); this.radSpinEditor1.Name = "radSpinEditor1"; // // button1 // this.button1.Location = new System.Drawing.Point(90, 86); this.button1.Name = "button1"; this.button1.Text = "button1"; // // Form1 // this.ClientSize = new System.Drawing.Size(262, 121); this.Controls.Add(this.button1); this.Controls.Add(this.radSpinEditor1); this.Load += new System.EventHandler(this.Form1_Load); ((System.ComponentModel.ISupportInitialize)(this.radSpinEditor1)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); } #endregion private Telerik.WinControls.UI.RadSpinEditor radSpinEditor1; private System.Windows.Forms.Button button1; } class Class1 { int number; public int Number { get { return number; } set { number = value; } } }