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

Load-On-Demand error

1 Answer 196 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 1
Richard asked on 24 Oct 2011, 02:44 AM
I'm not sure if anyone's asked about this specific issue before but I wasn't able to find it when I searched.  I'm trying to use a combobox as an autocomplete textbox using EnableLoadOnDemand but when I type into it it keeps giving me the javascript error: "There is no assigned data source.  Unable to complete callback request."  I was working when I first put it in but I can't seem to get it back to the way it was when it worked.  Is there anything anyone can think of that I can look at as to why it wouldn't be working.  These are the settings that I am setting in the codebehind.

combo.EnableAutomaticLoadOnDemand = true
combo.ItemsPerRequest = 15
combo.EnableVirtualScrolling = true
combo.ShowMoreResultsBox = true
combo.ShowDropDownOnTextboxClick = true

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 24 Oct 2011, 07:10 AM
Hello Richard,

I cannot reproduce the issue at my end. Here I am pasting the entire code that I tried which worked as expected.

aspx:
<telerik:RadComboBox ID="RadComboBox1"  AutoCompleteSeparator="," MarkFirstMatch="true" runat="server"EmptyMessage="Select a Company">
</telerik:RadComboBox>

C#:
protected void Page_Load(object sender, EventArgs e)
 {
    RadComboBox1.DataSourceID = "SqlDataSource1";
    RadComboBox1.DataTextField = "EmployeeID";
    RadComboBox1.DataValueField = "EmployeeID";
    RadComboBox1.EnableAutomaticLoadOnDemand = true;
    RadComboBox1.ItemsPerRequest = 15;
    RadComboBox1.EnableVirtualScrolling = true;
    RadComboBox1.ShowMoreResultsBox = true;
    RadComboBox1.ShowDropDownOnTextboxClick = true;
}

Please elaborate your scenario if it doesn't help.

Thanks,
Princy.
Tags
ComboBox
Asked by
Richard
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or