Kendo MVC (version 2021.2.616.545) - Jquery updates NumericTextBoxFor, but GUI doesn't reflect until you click on the NumericTextBox

1 Answer 69 Views
NumericTextBox
Brent
Top achievements
Rank 1
Iron
Brent asked on 28 Jun 2022, 05:07 PM

(as the title says) We updated an app including going to Kendo.Mvc (now Version 2021.2.616.545) and on one page we use Jquery to recalculate a total which is a NumericTextBoxFor. The GUI doesn't reflect, but when you click on the NumericTextBox the correct amount appears. I tried to use focus and changed event but neither seem to help.

 

Any ideas why this is occurring?

TIA!!

1 Answer, 1 is accepted

Sort by
0
Brent
Top achievements
Rank 1
Iron
answered on 28 Jun 2022, 06:37 PM
(Resolved)

Instead of this:

$('#PaymentTotal').val(parseFloat(sum).toFixed(2));



We did this:

var numericPaymentTotalTextbox = $('#PaymentTotal').data("kendoNumericTextBox");
numericPaymentTotalTextbox.value(parseFloat(sum).toFixed(2));

Tags
NumericTextBox
Asked by
Brent
Top achievements
Rank 1
Iron
Answers by
Brent
Top achievements
Rank 1
Iron
Share this question
or