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

Auto Complete in MVC

2 Answers 91 Views
UI for ASP.NET AJAX in ASP.NET MVC
This is a migrated thread and some comments may be shown as answers.
kar kyn
Top achievements
Rank 1
kar kyn asked on 09 Jul 2009, 10:14 AM

Dear All,

       How to do Auto complete in the text box such that which should check for first character match not any occurrence in the word.

Thanks,
kyn

2 Answers, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 09 Jul 2009, 10:20 AM
Hello kar kyn,

Have you considered using RadComboBox with its filtering feature in this case? Alternatively, you can utilize the load-on-demand feature of the control and define the filter criteria to return only items which start with a specific letter.

Best,
Sebastian
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
kar kyn
Top achievements
Rank 1
answered on 09 Jul 2009, 10:28 AM
Dear Sebastian

    Here am likely to fetch the records from json in MVC  for me now i can able to get the any occurrence in the word apart from First character but now i want to get only text for the first matched character.

$("#CountyCode").autocomplete(data, { matchContains: true,
                     formatItem: function(row) {
                         return "[" + row.CountyCodeNumber + "] " + row.CountyName;
                     }

kindly see the above code and do the needful.


Thanks
kyn




Tags
UI for ASP.NET AJAX in ASP.NET MVC
Asked by
kar kyn
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
kar kyn
Top achievements
Rank 1
Share this question
or