Hi
I'm having trouble getting the DataBinding to work on the ScrollView control here is my code:
Razor view
Controller
I got this error message
After I saw that Datasource send POST request ???
I changed my controler method to
And I got same error!
What I doing wrong ?
I'm having trouble getting the DataBinding to work on the ScrollView control here is my code:
Razor view
@(Html.Kendo().ScrollView()
.Name("svMessages")
//Afficher la pagination si plus d'un message.
.EnablePager(Model.NbMessages > 1)
.DataSource(d => d.Read(r => r.Action("AfficherMessagesAccueil", "Account"))))
[AllowAnonymous]
[HttpGet]
public ActionResult AfficherMessagesAccueil([DataSourceRequest] DataSourceRequest request)
{
var messages = new List<MessageAccueil>();
return Json(messages.ToDataSourceResult(request));
}
I got this error message
After I saw that Datasource send POST request ???
I changed my controler method to
[AllowAnonymous]
[HttpPost]
public ActionResult AfficherMessagesAccueil([DataSourceRequest] DataSourceRequest request)
{
var messages = new List<MessageAccueil>();
return Json(messages.ToDataSourceResult(request));
}
And I got same error!
What I doing wrong ?