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

[Solved] Why would I get "datasource null" here?

1 Answer 25 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Clay
Top achievements
Rank 1
Clay asked on 25 Apr 2013, 11:10 PM

Here is the YSOD error I'm getting:

Server Error in '/TLDReporter' Application.

"dataSource" cannot be null.
Parameter name: dataSource

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more 
information about the error and where it originated in the code.

In my ASP.NET MVC app, I'm getting:

Exception Details: System.ArgumentNullException: "dataSource" cannot be null.
Parameter name: dataSource

Source Error:

Line 562: </td>
Line 563: <td class="AddToList AutocompleteArea">
Line 564: @(
Line 565: Html.Telerik().ComboBoxFor(m => m.InputSite)
Line 566: .HighlightFirstMatch(true)

How can the Razor "@(" be a null data source?


1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 29 Apr 2013, 08:32 AM
Hello Clay,

 Could you show us your combobox configuration as well as the full stacktrace?

Greetings,
Atanas Korchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
ComboBox
Asked by
Clay
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or