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
4165
Unable to Escape from NumericEditor in a toolbar
posted

Hello,

We are having an issue with a numeric editor in a toolbar. If a user remove the value and tries to escape the control will not release. They can't even click out of it they have to put in a value. When they hit escape it does not revert to the original value (maybe this has to be coded in key down event?)

Also when they click in the control the number pushes to the right (see screenshot)

This is the code where we create and set the control

            uneTB_RCM = new Infragistics.Win.UltraWinEditors.UltraNumericEditor
            {
                Name = "uneTB_RCM",
                FormatString = "##.#0",
                PromptChar = ' ',
                NumericType = Infragistics.Win.UltraWinEditors.NumericType.Double,
                UseFlatMode = DefaultableBoolean.True,
                Width = 65,
              //  MaskInput = "{double:10.2}",
                AutoSize = true,
                MaxValue = 10000000000

            };

            this.Controls.Add(uneTB_RCM);
            uneTB_RCM.Visible = false;
            var pcRCM = utbTotals.Tools["ccRCM"] as ControlContainerTool;
            pcRCM.Control = uneTB_RCM;
            uneTB_RCM.AfterExitEditMode += uneTB_RCM_AfterExitEditMode;
            uneTB_RCM.KeyDown += uneTB_KeyDown;

Thanks for the help.

M.

Parents
No Data
Reply
  • 34810
    Offline posted

    Hello Michael,

    I have been investigating into the behavior you are seeing, and in order to prevent this, you will need to set the Nullable property on your UltraNumericEditor to true. By default, this is false, and the editor will not let you leave if there is no value, but this allows you to leave the editor if there is no value.

    Please let me know if you have any other questions or concerns on this matter.

Children
No Data