This is a migrated thread and some comments may be shown as answers.

autocomplete inside listview?

3 Answers 146 Views
AutoComplete
This is a migrated thread and some comments may be shown as answers.
Shirya
Top achievements
Rank 1
Shirya asked on 07 Mar 2015, 06:39 PM
Hello,
I'm new to all of this. i'm using mvc razor and i would like to know if it is possible to do this:
i would like a listview that displays the list of some employees in my DB. 
All the item in the list have a delete icon so they can be deleted.
Also, when i click on the listbox, a textbox appears at the end of the list. it is autocomplete and lists all employees in DB that have the letter(s) typed.
So then i can add the employee selected in my listview....

Is it possible? can i have some guidelines on how to do this?
thank you
shirya 

3 Answers, 1 is accepted

Sort by
0
Shirya
Top achievements
Rank 1
answered on 10 Mar 2015, 05:47 PM
anyone?
0
Alexander Popov
Telerik team
answered on 11 Mar 2015, 07:10 AM
Hello Shirya,

Yes, this could be done by using the editing capabilities of the ListView widget. You can then use a custom editor template to specify what kind of widget or input element should be used for editing each field. I would also recommend checking our offline demos, which are located in the Kendo UI installation path, under the \wrappers\aspnetmvc\Examples directory. 
The files you would be interested in are: 
  • Areas\razor\Views\listview\editing.cshtml
  • Areas\razor\Views\listview\EditorTemplates\ProductViewModel.cshtml

You can use the insert method of the Autocomplete's DataSource to add the selected items once the select event is triggered.

Regards,
Alexander Popov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Shirya
Top achievements
Rank 1
answered on 11 Mar 2015, 03:21 PM
Thank you for the answer, i will look into that! 
Tags
AutoComplete
Asked by
Shirya
Top achievements
Rank 1
Answers by
Shirya
Top achievements
Rank 1
Alexander Popov
Telerik team
Share this question
or