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

AutoCompleteBox - DataSource not set

7 Answers 187 Views
AutoCompleteBox
This is a migrated thread and some comments may be shown as answers.
Roman
Top achievements
Rank 1
Roman asked on 13 Mar 2014, 09:38 AM
After upgrading to 2014.1.225.40 version i get server error AutoCompleteBox though i am using Method="GetCompanyNames" Path="/mypage.aspx"

7 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 13 Mar 2014, 10:05 AM
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.
0
Bozhidar
Telerik team
answered on 13 Mar 2014, 11:01 AM
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.

 
0
Mark
Top achievements
Rank 2
answered on 31 Mar 2014, 06:22 PM
I'm getting the same error and my AutoCompleteBox is not in a grid.  It's in the AdvancedForm of the Scheduler control.  Help???
0
Mark
Top achievements
Rank 2
answered on 31 Mar 2014, 08:43 PM
Updating to the latest internal build fixed this problem, but revealed another one.  Submitting a bug.
0
Sam
Top achievements
Rank 1
answered on 27 Mar 2015, 10:04 AM
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    
0
Sam
Top achievements
Rank 1
answered on 27 Mar 2015, 10:31 AM
Add a comment that I used the AutoCompleteBox inside a RadGrid.
Exception Message: DataSource not set
0
Bozhidar
Telerik team
answered on 31 Mar 2015, 06:37 AM
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.

 
Tags
AutoCompleteBox
Asked by
Roman
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Bozhidar
Telerik team
Mark
Top achievements
Rank 2
Sam
Top achievements
Rank 1
Share this question
or