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

Return of DataValueFields not working

0 Answers 15 Views
AutoCompleteBox
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 15 Dec 2019, 10:18 PM

I am trying to get the datavaluefields from the AutoCompleteBox entries and the values are always empty. The text has the text in them but nothing in the value field.

This is the code to make the autocompletebox:

     <asp:SqlDataSource ID="sdsApplications" runat="server" ConnectionString="<%$ ConnectionStrings:ConfiguratorConnection %>" SelectCommand="SELECT Id, Name FROM tblValues" DataSourceMode="DataReader"></asp:SqlDataSource>
     <div class="form-group row label-floating">
      <asp:Label ID="lblApplications" runat="server" CssClass="control-label" AssociatedControlID="racApplications" style="margin-top:0;z-index:99999;">Applications</asp:Label>
      <telerik:RadAutoCompleteBox RenderMode="Lightweight" ID="racApplications" runat="server" Skin="Bootstrap"
       DataSourceID="sdsApplications" DataTextField="Name" DataValueField="Id" EmptyMessage="Select applications to include"
       AllowCustomEntry="False" MaxResultCount="50" DropDownHeight="900px">
      </telerik:RadAutoCompleteBox>

I have never been able to get the values out of the entries on the server side. Can anyone offer a resolution?

 

Thanks,

David

No answers yet. Maybe you can help?

Tags
AutoCompleteBox
Asked by
David
Top achievements
Rank 1
Share this question
or