MVC Widget with dynamic content

Posted by Community Admin on 04-Aug-2018 23:09

MVC Widget with dynamic content

All Replies

Posted by Community Admin on 31-Jul-2014 00:00

I have a mvc widget and want to create a dynamic input box that suggests names to you.I have a controller that has two methods Index (returns the actual widget markup) and Search (return a list of names in Json format).I call the search action using jquery $.ajax and append my items to a <ul>The problem i'm having as I cannot get to the search action the ajax call always returns a 404. What should I be setting the url parameter to?

Here are my controller actionpublic

 ActionResult Search(string name)return Json(new List<string>() "john", "bob" , JsonRequestBehavior.AllowGet);

Posted by Community Admin on 05-Aug-2014 00:00

Hi Damein,

We have answered you in the other forum thread opened by you. Please, to keep the communication straight, answer in the other thread available on the following link.



Regards,
Nikola Zagorchev
Telerik

 
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
 

This thread is closed