on 11-05-2015 8:27 AM
Hi Experts,
I have a requirement where in I have to show suggestion in an input field but for that I need to make server call.
That is, after user types in something i need to make a server call and then the response should be bound to suggestion items list.
I tried using addSuggestionItem but for that I need to loop on the whole response and then inside for loop I can call this method of addSuggestionItem .
I was wondering is there a way, I can bind the result directly to the suggestion Item.
Thanks,
Mansi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mansi,
You can do it using model binding. Check this sample: JS Bin - Collaborative JavaScript Debugging
At load of page, try to type 'B' you won't get anything. Then click on 'Bind Suggestion Items' button and then start typing 'B' you will get suggestion values.
Regards,
Sai Vellanki.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.