Bind Autocomplete to SharePoint 2013 list

4 posts, 0 answers
  1. Keith
    Keith avatar
    3 posts
    Member since:
    Nov 2011

    Posted 05 Feb 2014 Link to this post

    Are there any ready-made examples of how I could bind RadAutoComplete to a SharePoint list via web services? 
  2. Keith
    Keith avatar
    3 posts
    Member since:
    Nov 2011

    Posted 05 Feb 2014 in reply to Keith Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Bozhidar
    Admin
    Bozhidar avatar
    1102 posts

    Posted 10 Feb 2014 Link to this post

    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.
  5. Keith
    Keith avatar
    3 posts
    Member since:
    Nov 2011

    Posted 11 Feb 2014 in reply to Bozhidar Link to this post

    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!
Back to Top