Click here to Skip to main content
15,916,601 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Greetings of the day,


I had problem with Auto Complete in my kendo grid,If i'm doesn't select any value in the auto list then the value will be null(this is fine) but when i'm selecting value in auto list that time also data will be null


here i'm sharing my code,


filter: "startswith"
change: function (e) {
if (this.dataSource.data().indexOf(this.value()) == -1) {
this.value('');
}
},


in the code this.value() didn't get value it will get function.



help me resolve this issue,



Thanks in advanced.
Posted
Comments
Krunal Rohit 3-Oct-15 1:37am    
change: function(e){
this.dataItem(e.item.index() == -1)
{
// do your stuff...
}
}

-KR
RamAchanta 3-Oct-15 2:44am    
I'm trying with your answer but i'm getting like this

0x800a138f - Microsoft JScript runtime error: 'item' is null or not an object

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900