RadAutoCompleteBox raise error

2 posts, 0 answers
  1. gal
    gal avatar
    3 posts
    Member since:
    Jul 2007

    Posted 27 Mar 2015 Link to this post

    Here is my code
     <telerik:RadAutoCompleteBox ID="racdBookingSource" Runat="server"   AllowCustomEntry="true">

     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();

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

  2. Ivan Danchev
    Ivan Danchev avatar
    1304 posts

    Posted 01 Apr 2015 Link to this post


    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">

    Ivan Danchev

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

Back to Top