function OnStudentChange(e) {
if (e.sender.selectedIndex == -1) {
$("#StudentId").val("");
if($("#StudentId").data("kendoComboBox").text() == ""){
alert("Select student.");
}else{
alert("Select valid student.");
}
}
else {
var data = e.sender.dataSource._data;
$("#StudentId").val(data[e.sender.selectedIndex].StudentFullName);
}
}
function OnStudentDatabound(e){
if(e.sender.dataSource._total == 0){
$("#StudentId").val("");
}
}