AutoCompleteBox - DataSource not set

8 posts, 0 answers
  1. Roman
    Roman avatar
    8 posts
    Member since:
    Jun 2012

    Posted 13 Mar 2014 Link to this post

    After upgrading to 2014.1.225.40 version i get server error AutoCompleteBox though i am using Method="GetCompanyNames" Path="/mypage.aspx"
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 13 Mar 2014 in reply to Roman Link to this post

    Hi Roman,

    Please have a look into the sample code snippet which works fine at my end.

    ASPX:
    <telerik:RadAutoCompleteBox ID="RadAutoCompleteBox1" runat="server" DataSourceID="ObjectDataSource1"DataTextField="OrderID" DataValueField="OrderID">
    </telerik:RadAutoCompleteBox>
    <asp:ObjectDataSource ID="ObjectDataSource1" TypeName="Class1" SelectMethod="GetData"
        OnSelecting="ObjectDataSource1_Selecting" runat="server">
        <SelectParameters>
            <asp:Parameter Name="textvalue" Type="String" />
        </SelectParameters>
    </asp:ObjectDataSource>

    C#:
    protected void ObjectDataSource1_Selecting(object sender, ObjectDataSourceSelectingEventArgs e)
    {
        //passing the parameter value from code
        e.InputParameters["textvalue"] = RadAutoCompleteBox1.Text;
    }

    Thanks,
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Bozhidar
    Admin
    Bozhidar avatar
    1101 posts

    Posted 13 Mar 2014 Link to this post

    Hi Roman,

    If you are using the AutoCompleteBox inside a RadGrid, this issue is fixed in the internal build which was released after the official release.

    Regards,
    Bozhidar
    Telerik
     

    DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

     
  5. Mark
    Mark avatar
    79 posts
    Member since:
    Apr 2007

    Posted 31 Mar 2014 Link to this post

    I'm getting the same error and my AutoCompleteBox is not in a grid.  It's in the AdvancedForm of the Scheduler control.  Help???
  6. Mark
    Mark avatar
    79 posts
    Member since:
    Apr 2007

    Posted 31 Mar 2014 in reply to Mark Link to this post

    Updating to the latest internal build fixed this problem, but revealed another one.  Submitting a bug.
  7. Sam
    Sam avatar
    2 posts
    Member since:
    Oct 2012

    Posted 27 Mar 2015 Link to this post

    Hi Telerik Admin,

    After upgrading to 2014.3.1209.40, this issue occurs..
    Would you please help to check if there is any solution can resolve it...

    Thanks in advance    
  8. Sam
    Sam avatar
    2 posts
    Member since:
    Oct 2012

    Posted 27 Mar 2015 Link to this post

    Add a comment that I used the AutoCompleteBox inside a RadGrid.
    Exception Message: DataSource not set
  9. Bozhidar
    Admin
    Bozhidar avatar
    1101 posts

    Posted 31 Mar 2015 Link to this post

    Hi,

    Could you open a new support ticket and post a sample project that we can inspect in order to troubleshoot the issue, since the original cause has been fixed in the version you specified. You can also clarify what it the exact error you've received.

    Regards,
    Bozhidar
    Telerik
     

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

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