Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 94857

Datasource read not being called on initial page load

$
0
0
Hello again,

The exception is thrown because of the IQuerable properties in the ProjectSearchModel. In order to pass directly the model you could exclude them from the binding:
public ActionResult ReadProjects([DataSourceRequest] DataSourceRequest request, [Bind(Exclude = "ProjectTypeOptions,ProjectStatusOptions")]ProjectSearchModel searchModel)
or change their type to List.

Regards,
Daniel
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items

Viewing all articles
Browse latest Browse all 94857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>