Kendo numeric text box error: Uncaught TypeError: $(...).data(...).value is not a function

563 Views Asked by At

I'm trying to get and set kendonumerictextbox values, but I'm getting this error in the browser console:

Uncaught TypeError: $(...).data(...).value is not a function

This is how I'm trying to get the value:

var limEfect = $("#LimiteConsumoAvanceEfectivo").data("kendoNumericTextBox").value();

and this is how I'm trying to set it:

var txtSaldoLimMensual = $("#SaldoLimiteMensualLocal").data("kendoNumericTextBox");
        txtSaldoLimMensual.value("@Model.SaldoLimiteMensualLocal");

It is supposed to work. It was working before I updated my kendo files.My old files were from version 2015 and now I have the last 2017 version. I'm not using the very latest 2018 version because it caused a lot of problems in my app.

0

There are 0 best solutions below