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

RadAutoCompleteBox raise error

1 Answer 34 Views
AutoCompleteBox
This is a migrated thread and some comments may be shown as answers.
Suresh
Top achievements
Rank 1
Suresh asked on 27 Mar 2015, 11:54 AM
Here is my code
 <telerik:RadAutoCompleteBox ID="racdBookingSource" Runat="server"   AllowCustomEntry="true">
                 </telerik:RadAutoCompleteBox>

 public static List<object> GetBookingSource()
        {
            CandFEntities context = new CandFEntities();
            return context.Bookings.GroupBy(p => p.Booking_Source).OrderBy(m => m.Key).Select(r => r.Key).ToList<object>();


        }


protected void Page_Load(object sender, EventArgs e)
        {
            racdBookingSource.DataSource = BookingDataManager.GetBookingSource();
            racdBookingSource.DataBind();
}


But when i try to enter data to text box its raise error with sum asci data


1 Answer, 1 is accepted

Sort by
0
Ivan Danchev
Telerik team
answered on 01 Apr 2015, 10:44 AM
Hello,

Could you please post the error you are receiving? You can also try setting the RadAutoCompleteBox DataTextField property to a field name from the data source you are binding the control to, for instance:
<telerik:RadAutoCompleteBox ID="RadAutoCompleteBox1" runat="server" DataTextField="Booking_Source">


Regards,
Ivan Danchev
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
AutoCompleteBox
Asked by
Suresh
Top achievements
Rank 1
Answers by
Ivan Danchev
Telerik team
Share this question
or