autocomplete inside listview?

4 posts, 0 answers
  1. Shirya
    Shirya avatar
    9 posts
    Member since:
    Jul 2011

    Posted 07 Mar 2015 Link to this post

    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 
  2. Shirya
    Shirya avatar
    9 posts
    Member since:
    Jul 2011

    Posted 10 Mar 2015 Link to this post

    anyone?
  3. Kendo UI is VS 2017 Ready
  4. Alexander Popov
    Admin
    Alexander Popov avatar
    1416 posts

    Posted 11 Mar 2015 Link to this post

    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!
     
  5. Shirya
    Shirya avatar
    9 posts
    Member since:
    Jul 2011

    Posted 11 Mar 2015 Link to this post

    Thank you for the answer, i will look into that! 
Back to Top
Kendo UI is VS 2017 Ready