Invisible C1NumericEdit value does not get cleared

Originally Posted 26 January 2017, 5:28 pm EST

  • Originally Posted 26 January 2017, 5:28 pm EST

    We have a form with two related controls, a C1TextBox: "txtShow", and a C1NumericEdit "numDisplay".

    Step 1: A value is entered into the numDisplay control, let’s say “1.23”.

    Step 2: In the txtShow.TextChanged event we do this:
    numDisplay.Visible = FALSE

    Step 3: In another method, called from txtShow.Validated; when the user tabs off of txtShow, we do this:
    numDisplay.Value = 0

    Step 4: When other UI events are triggered by the user, we show the numDisplay control again:
    numDisplay.Visible = TRUE

    PROBLEM:
    Now that numDisplay is visible, we can see that the value of the control is still “1.23”.

    If, in step 3 we do this instead:
    numDisplay.Visible = TRUE
    numDisplay.Value = 0
    numDisplay.Visible = FALSE
    then after step 4, when the control is visible again, we can see that the value is now, “0.00”.
  • Reply

    I forgot to mention, these controls are bound to a datatable via a bindingsource.
    It seems the issue is that the value from the numDisplay control is not getting pushed to the datatable if the control is invisible.
  • Reply

    Hello,

    Thank you for reaching out to us.
    I tried replicating the issue but could not do so with the information provided.
    Therefore, I request you to please provide more information on what kind of BindingSource are you using to bind the C1 controls.

    Also, it would be really helpful if you could modify the attached sample application or share a sample application replicating the issue, so that I can reproduce it at my end too and help you better.

    I have also attached a video demonstrating the steps followed in order to replicate the issue.Let me know if I misunderstood your requirement or that I missed anything.

    Thanks & Regards
    Ruchir Agarwal
    2017/02/prj_C1NumericEdit.zip

    2017/02/C1NumericEdit.gif
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels