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

telerik:RadSearchBox and Datasource is connected to a web service

0 Answers 66 Views
SearchBox
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 17 Jul 2017, 10:58 PM

I have a telerik:RadSearchBox that has EnableAutoComplete="true" and its datasource is connected to a web service.

The web service requires a token that is set in the web.config file.

    Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
        Dim wsSearchResults As New ws_PBP_SearchResults.ws_PBP_SearchResultsSoapClient
        Dim dsPropName As System.Data.DataSet
        dsPropName = wsSearchResults.PropNameSearch(sKey:=ConfigurationManager.AppSettings.Item("AccessTokenPrivate"))
        Dim dt_PropName As DataTable = dsPropName.Tables("TableName")
        RadSearchBox1.DataSource = dt_PropName
        RadSearchBox1.DataBind()

End Sub

Is there a better way to populate the telerik:RadSearchBox datasource such as using <WebServiceSettings .... /> and have the ability to pass the web service a token?

Thanks in advance.

No answers yet. Maybe you can help?

Tags
SearchBox
Asked by
Kevin
Top achievements
Rank 1
Share this question
or