Load on de mand gives Object reference not set to an instance...

0 Answers 15 Views
ComboBox
Fit2Page
Top achievements
Rank 1
Iron
Veteran
Iron
Fit2Page asked on 03 Dec 2021, 02:03 PM

Hi,

 

When I switch a radcombobox to loadondemand i get this error message.

Otherwise it is working perfectly, can you tell me what I am doing wrong?

 

  <asp:SqlDataSource ID="sds_start" ConnectionString="<%$ connectionstrings: aaa %>" runat="server"></asp:SqlDataSource>
                  <telerik:RadComboBox ID="rcb_start" EnableAutomaticLoadOnDemand="true" ShowMoreResultsBox="true" EnableVirtualScrolling="true"
                ItemsPerRequest="10" EmptyMessage="Type..." DataTextField="location" DataValueField="iata" Filter="Contains" MarkFirstMatch="true" MinFilterLength="3" DropDownAutoWidth="Enabled" DataSourceID="sds_start" runat="server">
                  </telerik:RadComboBox>

 

 

Please refer to attached screenshot.

Marc

Vessy
Telerik team
commented on 08 Dec 2021, 09:59 AM

Hello Marc, do you have any server-side logic assigned to the RadComboBox control? Also can you disable temporary the AJAX on the page and see if the error remains?

If the behavior is the same, can you prepare and send me a runnable sample where I can reproduce the issue and debug the root for it further?

Fit2Page
Top achievements
Rank 1
Iron
Veteran
Iron
commented on 08 Dec 2021, 10:22 AM

Hi Vessy,

Please leave this one, I skipped the load-on-demand in the app for now.

 

Thanks for yr time!

 

Marc

Vessy
Telerik team
commented on 08 Dec 2021, 12:00 PM

Sure, Marc, thanks a lot for the update :)

No answers yet. Maybe you can help?

Tags
ComboBox
Asked by
Fit2Page
Top achievements
Rank 1
Iron
Veteran
Iron
Share this question
or