Subgrid Binding Not Working

2 posts, 0 answers
  1. Cynthia
    Cynthia avatar
    13 posts
    Member since:
    Apr 2012

    Posted 19 Sep 2013 Link to this post

        .Columns(columns =>
            columns.Bound(p => p.Id);
            columns.Bound(p => p.QuestionGroupName);
        .Events(e => e.DetailInit("onDetailInit"))
        .Events(e => e.DataBound("dataBound"))
    <script id="detailTemplate" type="text/kendo-tmpl">
            .DataSource(ds => ds
    <script type="text/javascript" language="javascript">
        function dataBound(e) {
        function onDetailInit(e) {
            var grid = $("#answersGrid_" +"kendoGrid");
    Above is a set of code.  Its not working.  I'm not sure why, maybe there is something obvious.  The grid shows up, but there is no child grid, and the columns are off by one.

  2. Dimiter Madjarov
    Dimiter Madjarov avatar
    2308 posts

    Posted 23 Sep 2013 Link to this post

    Hello Cynthia,

    In the current configuration the parent Grid is configured with a server dataSource, which does not support a client detail template. You should either configure it with an Ajax dataSource or use a server detail template instead.

    I wish you a great day!


    Dimiter Madjarov
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top