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

Bind Autocomplete to SharePoint 2013 list

3 Answers 69 Views
AutoCompleteBox
This is a migrated thread and some comments may be shown as answers.
Keith
Top achievements
Rank 1
Keith asked on 05 Feb 2014, 07:25 PM
Are there any ready-made examples of how I could bind RadAutoComplete to a SharePoint list via web services? 

3 Answers, 1 is accepted

Sort by
0
Keith
Top achievements
Rank 1
answered on 05 Feb 2014, 10:06 PM
I found a way with the server side object model to query a SP list:

protected void Page_Load(object sender, EventArgs e)
        {
            using (var site = new SPSite("http://sp2013server"))
            {
                using (var web = site.OpenWeb())
                {
                    var list = web.Lists["MyList"];
                    RadAutoCompleteBox1.DataSource = list.Items.GetDataTable();
                    RadAutoCompleteBox1.DataBind();
                }
            }
        }

My next question however is, how do I set the AutocompleteBox to search on multiple columns in this datasource? I need to generate a "hit" on several columns in the datasource.
0
Bozhidar
Telerik team
answered on 10 Feb 2014, 09:50 AM
Hello Keith,

Unfortunately at the moment such functionality is not supported in RadAutoCompleteBox. However we are researching the possibility to include a similar feature in one of our future releases, so keep track of our release history.

Regards,
Bozhidar
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the UI for ASP.NET AJAX, subscribe to the blog feed now.
0
Keith
Top achievements
Rank 1
answered on 11 Feb 2014, 04:38 PM
Thanks - I noted that the RadComboBox has the ability to query across several fields and went with that tool instead. It would be good to have this available in a future AutoCompleteBox release too!
Tags
AutoCompleteBox
Asked by
Keith
Top achievements
Rank 1
Answers by
Keith
Top achievements
Rank 1
Bozhidar
Telerik team
Share this question
or