Data method Read.Action in Kendo Grid not working

3 posts, 0 answers
  1. york
    york avatar
    160 posts
    Member since:
    Jul 2012

    Posted 16 Nov 2015 Link to this post


    I have a Kendo Grid in which I use Data method in Read.Action to pass parameters to a controller action. The code is:

    <% Html.Kendo().Grid<EvaluationsQuestionsEvaluationPillarsGridViewModel>()
                .DataSource(dataSource => dataSource
                      .Model(model => model.Id(a => a.EvaluationMasterPillarId))
                      .Read(read => read.Action("LoadEvaluationsQuestionsEvaluationPillarsGridAjax", "Evaluations")

            function onLoadEvaluationsQuestionsEvaluationPillarsGridData(e) {
                var evaluationVersionId = $('#evaluationVersionId').val();  // "evaluationVersionId" is set beforehand
                var showDeletedCheckbox = $('#Checkbox1').val();

                return { evaluationVersionId: evaluationVersionId, showDeleted: showDeletedCheckbox }

            public ActionResult LoadEvaluationsQuestionsEvaluationPillarsGridAjax(DataSourceRequest request, string evaluationVersionId, bool showDeleted)

    But the controller action "LoadEvaluationsQuestionsEvaluationPillarsGridAjax" is not even invoked. I need help on this. Thanks.


  2. york
    york avatar
    160 posts
    Member since:
    Jul 2012

    Posted 16 Nov 2015 in reply to york Link to this post

    This is solved. The reason is not due to Data method in Read.Action, but "$('#Checkbox1').val()" is not correct.


  3. UI for ASP.NET AJAX banner
  4. Dimiter Madjarov
    Dimiter Madjarov avatar
    2123 posts

    Posted 18 Nov 2015 Link to this post

    Hello york,

    I would suggest to check the browsers developer tools console for JavaScript errors and also the network tab for the read request of the Grid. This will help you to pinpoint the reason for the issue.

    Dimiter Madjarov
    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
Back to Top