Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
4695
ultraNumericEditor keydown event
posted

Dear all,

I have several ultraNumericEditor controls with keydown event. I find out that the value of the UltraNumericEditor is cleared after another numericEditor is selected by Enter Key Down. Do you know why??

protected void enterKeyEvent(object sender, System.Windows.Forms.KeyEventArgs e)
        {
            int keyCode = (int)e.KeyCode;

            if (keyCode == (int)Keys.Enter)
            {
                Infragistics.Win.UltraWinEditors.UltraNumericEditor temp = ((Infragistics.Win.UltraWinEditors.UltraNumericEditor)sender);
                if (temp.Name == "neCatty")
                                       neTael.Select();
                 else if(temp.Name=="nePound")
                    neTael.Select();
                else if (temp.Name == "neTael")
                    neMace.Select();
                else if (temp.Name == "neMace")
                    neCandareen.Select();
                else if (temp.Name == "neCandareen")
                    btnOK.Select();
            }
            else if (keyCode == (int)Keys.Escape)
            {
                this.btnCancel_Click(this, null);
            }
        }

Parents
  • 71886
    Offline posted

    Hello,

    I tried this scenario and I am not able to reproduce the above mentioned behavior. For me, the other 'UltraNumericEditor' is selected and the values in both editors is kept the same. Could you please if possible attach a small sample project which reproduces this issue, I will be happy to take a look at it, or if you like I can attach a working sample of my own, but I do not know if this would help you at all.

    Please do not hesitate to contact me if you need any additional assistance.

Reply Children