server Filtering and Adding new item in combobox

2 posts, 0 answers
  1. Adam
    Adam avatar
    4 posts
    Member since:
    Jun 2014

    Posted 15 Jul 2014 Link to this post

    Hi i have Mvc application. where i have a text box and desired behavior is to search the item in DB and if found, widget will display the found list in suggestion options so i can add to local list 

    and if the item don't exist, add the new item [ thru same widget ] in the database when we press enter.

    since autocomplete Widget don't allow to add new items, i went with combobox

    can we add new item in combobox widget in the same time if we are performing the server filtering
  2. Georgi Krustev
    Georgi Krustev avatar
    3687 posts

    Posted 16 Jul 2014 Link to this post


    Currently the ComboBox widget (applicable for AutoComplete, DropDownList, MultiSelect too) is designed to show the end user a suggestion box with items. It is not designed to allow create/update operations through the UI, this functionality cannot be accomplished out-of-the-box. What you can do to achieve your goal is to provide to the user an additional form, which will give him/her the ability to add new item. Once it is added, you can rebind the combobox and select this new item. Here are some helpful links:

    # get widget data source

    # add item to the data source:

    # set widget value

    Please note that this functionality is a custom solution and its implementation is up to the developer 

    Georgi Krustev

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

  3. UI for ASP.NET AJAX banner
Back to Top