Load-On-Demand error

2 posts, 0 answers
  1. Richard
    Richard avatar
    6 posts
    Member since:
    Oct 2011

    Posted 23 Oct 2011 Link to this post

    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
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 24 Oct 2011 Link to this post

    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.
Back to Top