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

[Solved] Teklerik MVC extension AutoComplete not working

0 Answers 17 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Tshencho
Top achievements
Rank 1
Tshencho asked on 25 Oct 2012, 10:22 AM
hello all,

i got a problem with autocomplete text box. controller action is not getting text that is typed in the textbox.

//view
<%= Html.Telerik().AutoComplete()
                            .Name("text")
                            .HtmlAttributes(new { Style="width:40%;"})
                            .DataBinding(binding => binding.Ajax().Select("_GetTextLike", "Mytext"))
                            .HighlightFirstMatch(true)
                    %>

//controller
[HttpPost]
public ActionResult _GetTextLike(string text)// not getting velue for text
       
{
               
return new JsonResult { Data = ..... };

       
}
thanks in advance
Tags
General Discussions
Asked by
Tshencho
Top achievements
Rank 1
Share this question
or