2
Answers

How to compare numerictextboxes in kendoui ?

I have two textboxes the second textbox value should be allow only greater than first textbox value , how can i make the validation
or if the second textbox value is less than first textbox value , it should show the alert and the focus should be in the second textbox
Answers (2)
0
Suresh Kumar

Suresh Kumar

NA 3.1k 36.5k 7y
Hi ,
 
Below code may help
 
 
$.ajax(
{
type: "POST",
url: "Gridview.aspx/BindSearchDatatable",
//data: "{officename : '"+searchtext+"'}",
data: JSON.stringify({ officename: searchtext }),
contentType: "application/json; charset=utf-8",
dataType: "json",
async: true,
cache: false,
success: function (data) {
//iterate the gridview,bind the json data to gridview
$("#gvDetails").empty();
for (var i = 0; i < data.d.length; i++) {
$("#gvDetails").append("" + data.d[i].OfficeName + "" + data.d[i].City + "" + data.d [i].Country + "");
}
},
error: function (x, e) {
alert("The call to the server side failed. " + x.responseText);
}
}