AutoComplete send selected dataitem to Controller

2 posts, 0 answers
  1. Ludek Soukup
    Ludek Soukup avatar
    6 posts
    Member since:
    Apr 2009

    Posted 10 Mar 2017 Link to this post


    I have problem with getting seleted dataitem to controller from AutoComplete. This work only in popup editor on grid, but with Ajax.BeginForm not :(, I don't know how popup editor submit data to controler but it send complete dataitem. If I use AutoComplete on Window in Ajax.BeginForm it send only string value.

    Please can you help me with this. I don't want use ComboBox.


    Best regards,


  2. Ivan Danchev
    Ivan Danchev avatar
    1995 posts

    Posted 14 Mar 2017 Link to this post

    Hello Ludek,

    By design the AutoComplete does not have a dataValueField configuration option (only dataTextField) and submits only its selected text value. If in addition to the text value you want to access a different property value (Id for example) we can suggest getting the value from the dataItem in the AutoComplete's select event and saving in a hidden field that you can then access in the controller.

    Ivan Danchev
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top