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


  2. Ivan Danchev
    Admin
    Ivan Danchev avatar
    837 posts

    Posted 01 Apr 2015 Link to this post

    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.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top