Hello,
I have been trying to get the value from a simple kendo textbox but keep getting this error: "Unable to get property 'value' of undefined or null reference" upon entry the web page. Below is my jquery and kendo html helper code in my Mvc View:
<script>
function filterGrid() {
var startDate = $("#StartDate").data("kendoDatePicker"),
applType = $("#applTypeDropDownList").data("kendoDropDownList"),
allColumns = $("#allCols").data("kendoTextBox"); <==== problem here
var filter = {
startDate: startDate.value(),
applType: applType.value(),
allColumns: allColumns.value() <==== problem here
};
return filter;
}
</script>
<div class="container-fluid">
<div>
@(Html.Kendo().TextBox()
.Name("allCols")
.Deferred()
)
</div>
</div>
As you can see, I also have other widgets such as datepicker and dropdownlist and they both working fine except the textbox widget.
Please advise. Thank you.