Posted 19 March 2026, 6:59 am EST - Updated 19 March 2026, 7:09 am EST
Hi,
Migrate from 2010v1 to 2025v2 399 in ASP.NET WebForms NET Framework 4.8.1.
Using C1.Web.Wijmo.Controls.C1Input.C1InputCurrency from C1.Web.Wijmo.Controls.48.dll
Changes C1CurrencyInput to C1InputCurrency control.
C1.Web.Wijmo.Controls.C1Input.C1InputCurrency C1CurrencyInputPendingDebt;
Now fails this:
var control = $find("<%= C1CurrencyInputPendingDebt.ClientID %>");
var pending = control.get_Value();
var numericInput = $find("<%= C1CurrencyInputPendingDebt.ClientID %>");
console.log(numericInput);
numericInput.set_Value(1);
Now, I try this code (works for a c1inputnumeric, not for a C1InputCurrency ), fails :
var C1CurrencyInputPendingDebtID = "<%= C1CurrencyInputPendingDebt.ClientID %>";
var newValue = parseFloat(Debt);
console.log("value: " + newValue);
// : cannot call methods on c1inputnumeric prior to initialization; attempted to call method 'option'
var currencyinput = $("#" + C1CurrencyInputPendingDebtID);
console.log("C1CurrencyInputPendingDebtID " + currencyinput);
var val = currencyinput.c1inputnumeric('option', 'value');
console.log("C1CurrencyInputPendingDebtID " + val);
currencyinput.c1inputnumeric('option', 'value', newValue);
I get the error
cannot call methods on c1inputnumeric prior to initialization; attempted to call method ‘option’
I try this, and fails:
var ctl = wijmo.Control.getControl('#<%= C1CurrencyInputPendingDebt.ClientID %>');
console.log(ctl);
var ctl = wijmo.Control.getControl("#" + C1CurrencyInputPendingDebt);
ctl.value; // get
ctl.value = newValue; // set
good patterns using C1InputCurrency ?
why works for a c1inputnumeric, not for a C1InputCurrency ?
thanks all a lot, regards, any help will be very appreciated