C1NumericEdit - How to customise the calculator?

Posted by: dan on 20 June 2024, 5:09 am EST

  • Posted 20 June 2024, 5:09 am EST - Updated 20 June 2024, 7:40 am EST

    Hi

    I’ve tried to follow the instructions in https://help.grapecity.com/componentone/PDF/WinForms/WinForms.Input.pdf but I’ve run into a number of problems!

    1. The DropDown control doesn’t exist (as displayed in the pdf)
    2. I’ve added the C1Input control (browsed to C:\Program Files (x86)\MESCIUS\ComponentOne\WinForms\bin\v4.8) as an inherited form and it gives me the calculator as expected (C1.Win.C1Input.DropDownCalculator). However, this calculator form is read only so I can’t make any changes.

    What am I doing wrong please?

    Also, how can I programmatically display the drop down (ie without having to click the dropdown button)? ← Found that, it was just contol.OpenDropDown()

    Thanks

  • Posted 21 June 2024, 8:03 am EST

    Hello,

    1. The documentation you are using is for older controls and is outdated. Please refer to the latest documentation at https://developer.mescius.com/componentone/docs/win/online-input/overview.html.
    2. It seems like you are asking for C1DropDownControl. Please refer to https://developer.mescius.com/componentone/docs/win/online-input/C1.Win.C1Input.4.8~C1.Win.C1Input.C1DropDownControl.html for C1DropDownControl class and https://developer.mescius.com/componentone/docs/win/online-input/customdropdown.html to see how to create custom drop-downs.
    3. ⁠We are sorry but C1.Win.C1Input.DropDownCalculator is not a stand-alone control that can be customized. You’ll have to create a calculator from scrach inheriting C1.Win.C1Input.DropDownForm as per your requirements and pass it to DropDownFormClassName property of C1NumericEdit (if you are using calculator as a drop-down of C1NumericEdit).

    If you require any further assistance or have any questions, please do not hesitate to reach out to us.

    Regrads,

    Uttkarsh.

Need extra support?

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

Learn More

Forum Channels