C1InputNumeric properties-methods in 2025v2 399

Posted by: enrique.pv-ext on 13 January 2026, 4:05 am EST

    • Post Options:
    • Link

    Posted 13 January 2026, 4:05 am EST

    Hi,

    Migrate from 2010v1 to 2025v2 399 in ASP.NET WebForms NET Framework 4.8.1.

    Using C1InputNumeric from C1.Web.Wijmo.Controls.48.dll

    set_nullText and set_Value now not exists.

    Javascript code in my aspx page:

         function resetWindowAdd() {
             try {
                 deleteTextBox('<%= TextBoxDescription.ClientID %>');
                   deleteTextBox('<%= TextBoxCreditCard.ClientID %>');
                   var currencyinput = $find("<%= C1NumericInputServiceTime.ClientID %>");
                   currencyinput.set_nullText('<% Response.Write((string)this._textsShown[4]); %>');
                   currencyinput.set_Value(0);
    
                   currencyinput = $find("<%= C1NumericInputPriority.ClientID %>");
                   currencyinput.set_nullText('<% Response.Write((string)this._textsShown[4]); %>');
                   currencyinput.set_Value(0);
                   TabCategory = -1;
                   ExitCategory = -1;
                   AutomaticCategory = -1;
                   setSelectedIndexDropDownList('<%= C1ComboBoxPassMode.ClientID %>', 0);

    Any suggestions ?

  • Posted 14 January 2026, 5:13 am EST

    Hi Enrique,

    In the 2025v2 (Build 399) version of the C1.Web.Wijmo.Controls.48 library, the client-side object model has moved away from the legacy Microsoft AJAX $find patterns. These controls are now implemented as jQuery UI widgets.

    You can no longer use set_Value or set_nullText. Instead, you interact with the control using the jQuery widget “option” method as follows:

    <script type="text/javascript">
        function setNumericValue() {
            // Find the element via jQuery
            var $input = $('#<%= C1InputNumeric1.ClientID %>');
        
            // Use the Widget 'option' method to set the value
            $input.c1inputnumeric('option', 'value', 399);
            console.log("Value set via jQuery Widget pattern.");
        }
    
        function setNullValue() {
            var $input = $('#<%= C1InputNumeric1.ClientID %>');
    
            // 1. Set the nullText option
            $input.c1inputnumeric('option', 'nullText', 'Enter quantity...');
    
            // 2. Set the value to null
            $input.c1inputnumeric('option', 'value', null);
    
            console.log("NullText and Value set via jQuery Widget pattern.");
        }
    </script>
    
    <wijmo:C1InputNumeric ID="C1InputNumeric1" runat="server"></wijmo:C1InputNumeric>
    
    <button type="button" onclick="setNumericValue()">Set 399</button>
    <button type="button" onclick="setNullValue()">Set Null</button>

    Please refer to the attached sample for implementation. (see Input_Numeric.zip)

    You can also refer to the product samples located at .\Documents\ComponentOne Samples on your machine if you have installed samples while installing C1Web Suite.

    Regards,

    Uttkarsh.

Need extra support?

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

Learn More

Forum Channels