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

Can I use in radDropDownList webmethod for data source for AutoCompleteDataSource property ?

2 Answers 67 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Zlatko Rusev
Top achievements
Rank 1
Zlatko Rusev asked on 11 Mar 2011, 03:56 PM
Can I use in radDropDownList webmethod  for data source for AutoCompleteDataSource property ?

If yes, can you give some help code

Thank for effort answer me

Best Regards
Zlatko

2 Answers, 1 is accepted

Sort by
0
Richard Slade
Top achievements
Rank 2
answered on 11 Mar 2011, 04:11 PM
Hello,

The drop down list autocomplete datasource can be any valid datasource. E.g

RadDropDownList radDropDownList1 = new RadDropDownList();
radDropDownList1.AutoCompleteDataSource = // a data source
radDropDownList1.AutoCompleteDisplayMember = "DisplayMember";
radDropDownList1.AutoCompleteValueMember = "ValueMember";
radDropDownList1.AutoCompleteMode = AutoCompleteMode.Suggest;

You can see additional information at this help topic
Hope that helps
Richard
0
Peter
Telerik team
answered on 16 Mar 2011, 08:33 AM
Hi,

Thank you for writing.

You can use Ricard's solution or you can implement a custom CustomAutoSuggestHelper and set another data source to the DropDownList of this helper class. This data source will be used for the auto-complete operation. Please refer the following post for more details on how to implement a custom AutoAppendHelper.

I hope this helps. If you need further assistance, please do not hesitate to ask. 

Regards,
Peter
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
DropDownList
Asked by
Zlatko Rusev
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Peter
Telerik team
Share this question
or