We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Client-side Template binding issue

Thread ID:





116189 Apr 22,2014 08:27 AM UTC Apr 22,2014 01:47 PM UTC ASP.NET MVC (Classic) 1
Tags: AutoCompleteTextBox
Yujin Wu
Asked On April 22, 2014 08:27 AM UTC

Hi Team,


I'm stuck in client-side Template binding issue, I have added MicrosoftAjax.js and MicrosoftAjaxTemplates.js into my project but it still doesn't work, could you help figure out what code or .js references I missed in the proj? (attach files)


Besides, could you create a demo how to use client-side template binding to the AutoCompleteTextBox control, and send your demo project as attachment file to me?





Attachment: ClientSideTemplateBinding_3cbc4f93.rar

Ezhil S [Syncfusion]
Replied On April 22, 2014 01:47 PM UTC

Hi Yujin,


Thank you for using Syncfusion products.


To create an Autocomplete text box with template, Set ClientSideTemplate value to call the controller that gets the JSON element. Define the suggestions in the controller and return the JSON object. Also set the mode of data using AutoCompleteTexBoxModel option. Please refer the following code snippet,















<ul class="sys-template" id="visitingCard" style="visibility: hidden">

            <li id="{{CustomerID}}">

                <div class="profiles">

                    <div class="profile">


















public JsonResult AutoCompleteSearchName(string QueryString)


            Northwind context = SqlCE;

            Random r = new Random();


            var filteredData = from suggestion in context.Customers

                               where suggestion.CustomerID.StartsWith(QueryString)

                               select new


                                   CustomerID = suggestion.CustomerID,

                                   ContactName = suggestion.ContactName,

                                   CompanyName = suggestion.CompanyName,

                                   City = suggestion.City,

                                   Phone = suggestion.Phone


            return Json(filteredData, JsonRequestBehavior.AllowGet);





Please download the sample from the following link:



Kindly let us know if you have further queries.



Ezhil S


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon