The text area populates, and combo indicates there are several items but I can't get the list to drop down. A web service is attatched to combo by way of ObjectDataSource.
asp.net;
The web service is simply plugs some values into a dataset for purpose of demonstration;
see also attached.
Would be grateful for any ideas. Thank you.
asp.net;
<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" height="200px" width="95%"> <telerik:RadComboBox ID="RadComboSearch" Runat="server" AutoPostBack="True" EmptyMessage="Type your search query here;" Height="98%" ShowDropDownOnTextboxClick="True" ShowMoreResultsBox="True" Text="Enter Search Criteria" Width="100%" AllowCustomText="True" EnableVirtualScrolling="True" MarkFirstMatch="True" DataSourceID="MyWebServices" DataValueField="StringResult" DataTextField="StringResult" EnableAutomaticLoadOnDemand="True" ItemsPerRequest="10" > </telerik:RadComboBox> <asp:ObjectDataSource ID="MyWebServices" runat="server" SelectMethod="SearchBoxResult" TypeName="NVSS_Manual.Lookup" > <SelectParameters> <asp:ControlParameter ControlID="RadComboSearch" Name="SearchString" PropertyName="Text" Type="String" /> </SelectParameters> </asp:ObjectDataSource> </telerik:RadAjaxPanel>
The data provider is a method on the page that calls a web service and converts the dataset to a datatable
public DataTable SearchBoxResult(string SearchString){ DataTable ReturnValue = null; NVSS_ManualWebService.NVSS_Manual_WebService ws = new NVSS_ManualWebService.NVSS_Manual_WebService(); DataSet ds =ws.Search_BoxResult(); ReturnValue = ds.Tables[0]; return ReturnValue;}The web service is simply plugs some values into a dataset for purpose of demonstration;
...
[WebMethod] public DataSet Search_BoxResult() { DataSet ds = new DataSet(); DataTable dt = new DataTable(); DataColumn dc=new DataColumn("StringResult", Type.GetType("System.String")); dt.Columns.Add(dc); ds.Tables.Add(dt); dt.Rows.Add("Appendicitus"); dt.Rows.Add("aaa1"); dt.Rows.Add("aaa3"); dt.Rows.Add("aaa2"); return ds; }
... see also attached.
Would be grateful for any ideas. Thank you.