Hello
I can't attach webservice as a source of data to RadSearchBox
I have webservice:
on my server:
http://ip.address/uslugi/apin01.asmx
How I must fill WebserviceSettings ?
Can I please for simple example with bindind to webservice data ?
regards,
Dominik
I can't attach webservice as a source of data to RadSearchBox
I have webservice:
[System.Web.Services.WebMethod(Description = "dane dla searchbox")] public List<MySearchBoxItemData> GetResults(string context) { DataTable data = GetData(context); List<MySearchBoxItemData> result = new List<MySearchBoxItemData>(); for (int i = 0; i < data.Rows.Count; i++) { MySearchBoxItemData itemData = new MySearchBoxItemData(); itemData.Text = data.Rows[i]["nazwisko"].ToString(); itemData.Value = data.Rows[i]["nrewid"].ToString(); result.Add(itemData); } return result; }http://ip.address/uslugi/apin01.asmx
How I must fill WebserviceSettings ?
<telerik:RadSearchBox ID="RadSearchBox2" runat="server" Height="16px" Width="244px" Filter="StartsWith"> <WebServiceSettings Path="http://ip.address/uslugi/apin01.asmx" Method="GetResults" /> </telerik:RadSearchBox>Can I please for simple example with bindind to webservice data ?
regards,
Dominik