How to pass multiple parameters from main grid to 2nd tier grid

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

    Posted 30 Oct 2015 Link to this post

    Hi,

    I have 2 tier grids​ that need to pass 2 parameters from 1st grid to 2nd grid.

    1st grid is like:

            <% Html.Kendo().Grid<EvaluationsQuestionsEvaluationPillarsGridViewModel>()
                .Name("Pillars")
                .DataSource(dataSource => dataSource
                      .Ajax()
                      .Model(model => model.Id(a => a.EvaluationMasterPillarId))
                      .ServerOperation(true)
                      .Read(read => read.Action("LoadEvaluationsQuestionsEvaluationPillarsGridAjax", "Evaluations", new { showDeleted = false }))
     ...

    2nd grid is like:
            <%: Html.Kendo().Grid<EvaluationsQuestionsEvaluationPillarQuestionsGridViewModel>()
                .Name("Pillars_#=EvaluationMasterPillarId#")
                .DataSource(dataSource => dataSource
                        .Ajax()
                        .Model(model => model.Id(a => a.EvaluationVersionQuestionId))
                        .ServerOperation(false)
                        .Create(create => create.Action("InsertEvaluationVersionQuestion", "Evaluations", new { prevEvaluationVersionId = "#=EvaluationVersionId#", prevEvaluationMasterPillarId = "#=EvaluationMasterPillarId#" }))
                        .Read(read => read.Action("LoadEvaluationsQuestionsEvaluationPillarQuestionsGridAjax", "Evaluations", new { evaluationVersionId = "#=EvaluationVersionId#", evaluationMasterPillarId = "#=EvaluationMasterPillarId#", showDeleted = false }))
    ...
    This is not working for only EvaluationMasterPillarId is passed. So I think we need to pass EvaluationVersionId too. How to do it?
    Thanks.

Back to Top