Kendo MVC Grid Uncaught Error: Invalid template

2 posts, 0 answers
  1. PIPS
    PIPS avatar
    1 posts
    Member since:
    May 2015

    Posted 19 Apr 2016 Link to this post

    Hi, I'm trying to create a MVC Grid on Razor, but by the time I enter to my view page I get an error on the debugger console:

     

    <div class="k-tabstrip-wrapper"><div class="k-widget k-tabstrip k-header" id="tabStrip_#=IdAlumno#"><ul class="k-reset k-tabstrip-items"><li class="k-item k-state-default k-state-active"><a class="k-link" href="\#tabStrip_#=IdAlumno#-1">Notas de conducta</a></li></ul><div class="k-content k-state-active" id="tabStrip_#=IdAlumno#-1" style="display:block">
    <div class="k-widget k-grid" id="gridAlumnos_#=IdAlumno#"><table><colgroup><col style="width:56px" /><col style="width:150px" /><col style="width:350px" /><col style="width:100px" /></colgroup><thead class="k-grid-header"><tr><th class="k-header k-filterable" data-field="IdConductaGeneral" data-index="0" data-title="Id" scope="col"><a class="k-grid-filter" href="javascript:void(0)"><span class="k-icon k-filter"></span></a><a class="k-link" href="/Conducta/ObtenerNotasConductaGeneral?matricula=%23%3DMatricula%23&gridAlumnos_%23%3DIdAlumno%23-sort=IdConductaGeneral-asc">Id</a></th><th class="k-header k-filterable" data-field="Fecha" data-index="1" data-title="Fecha" scope="col"><a class="k-grid-filter" href="javascript:void(0)"><span class="k-icon k-filter"></span></a><a class="k-link" href="/Conducta/ObtenerNotasConductaGeneral?matricula=%23%3DMatricula%23&gridAlumnos_%23%3DIdAlumno%23-sort=Fecha-asc">Fecha</a></th><th class="k-header k-filterable" data-field="Observaciones" data-index="2" data-title="Observaciones" scope="col"><a class="k-grid-filter" href="javascript:void(0)"><span class="k-icon k-filter"></span></a><a class="k-link" href="/Conducta/ObtenerNotasConductaGeneral?matricula=%23%3DMatricula%23&gridAlumnos_%23%3DIdAlumno%23-sort=Observaciones-asc">Observaciones</a></th><th class="k-header k-filterable" data-field="Conducta" data-index="3" data-title="Conducta" scope="col"><a class="k-grid-filter" href="javascript:void(0)"><span class="k-icon k-filter"></span></a><a class="k-link" href="/Conducta/ObtenerNotasConductaGeneral?matricula=%23%3DMatricula%23&gridAlumnos_%23%3DIdAlumno%23-sort=Conducta-asc">Conducta</a></th></tr></thead><tbody><tr class="k-no-data"><td colspan="4"></td></tr></tbody></table><div class="k-pager-wrap k-grid-pager"><a class="k-link k-pager-nav k-state-disabled k-pager-first" data-page="1" href="\#" title="Ir a la primera página"><span class="k-icon k-i-seek-w">seek-w</span></a><a class="k-link k-pager-nav k-state-disabled" data-page="0" href="\#" title="Ir a la página anterior"><span class="k-icon k-i-arrow-w">arrow-w</span></a><ul class="k-pager-numbers k-reset"><li><span class="k-state-selected" data-page="1">1</span></li></ul><a class="k-link k-pager-nav k-state-disabled" data-page="2" href="\#" title="Ir a la página siguiente"><span class="k-icon k-i-arrow-e">arrow-e</span></a><a class="k-link k-pager-nav k-state-disabled k-pager-last" data-page="1" href="\#" title="Ir a la última página"><span class="k-icon k-i-seek-e">seek-e</span></a><span class="k-pager-info k-label">No hay datos.</span></div></div><script>
        jQuery(function(){jQuery("\#gridAlumnos_#=IdAlumno#").kendoGrid({"columns":[{"title":"Id","headerAttributes":{"data-field":"IdConductaGeneral","data-title":"Id"},"width":"56px","field":"IdConductaGeneral","filterable":{"messages":{"info":"Mostrar filas con valor que","isTrue":"Si","isFalse":"No","filter":"Filtrar","clear":"Limpiar filtro","and":"Y","operator":"Operador","value":"Valor","cancel":"Cancelar"},"operators":{"string":{"eq":"Es igual a","neq":"No es igual a","startswith":"Comienza con","endswith":"Termina en","contains":"Contiene","doesnotcontain":"No contiene","isnull":"Is null","isnotnull":"Is not null","isempty":"Is empty","isnotempty":"Is not empty"},"number":{"eq":"Es igual a","neq":"No es igual a","gte":"Es mayor o igual que","gt":"Es mayor que","lte":"Es menor o igual que","lt":"Es menor que","isnull":"Is null","isnotnull":"Is not null"},"date":{"eq":"Es igual a","neq":"No es igual a","gte":"Es posterior o igual a","gt":"Es posterior","lte":"Es anterior o igual a","lt":"Es anterior","isnull":"Is null","isnotnull":"Is not null"},"enums":{"eq":"Es igual a","neq":"No es igual a","isnull":"Is null","isnotnull":"Is not null"}}},"encoded":true},{"title":"Fecha","headerAttributes":{"data-field":"Fecha","data-title":"Fecha"},"width":"150px","template":"#= kendo.toString(FechaInicio, \"MM/dd/yyyy \") #","field":"Fecha","filterable":{"messages":{"info":"Mostrar filas con valor que","isTrue":"Si","isFalse":"No","filter":"Filtrar","clear":"Limpiar filtro","and":"Y","operator":"Operador","value":"Valor","cancel":"Cancelar"},"operators":{"string":{"eq":"Es igual a","neq":"No es igual a","startswith":"Comienza con","endswith":"Termina en","contains":"Contiene","doesnotcontain":"No contiene","isnull":"Is null","isnotnull":"Is not null","isempty":"Is empty","isnotempty":"Is not empty"},"number":{"eq":"Es igual a","neq":"No es igual a","gte":"Es mayor o igual que","gt":"Es mayor que","lte":"Es menor o igual que","lt":"Es menor que","isnull":"Is null","isnotnull":"Is not null"},"date":{"eq":"Es igual a","neq":"No es igual a","gte":"Es posterior o igual a","gt":"Es posterior","lte":"Es anterior o igual a","lt":"Es anterior","isnull":"Is null","isnotnull":"Is not null"},"enums":{"eq":"Es igual a","neq":"No es igual a","isnull":"Is null","isnotnull":"Is not null"}}},"encoded":true},{"title":"Observaciones","headerAttributes":{"data-field":"Observaciones","data-title":"Observaciones"},"width":"350px","field":"Observaciones","filterable":{"messages":{"info":"Mostrar filas con valor que","isTrue":"Si","isFalse":"No","filter":"Filtrar","clear":"Limpiar filtro","and":"Y","operator":"Operador","value":"Valor","cancel":"Cancelar"},"operators":{"string":{"eq":"Es igual a","neq":"No es igual a","startswith":"Comienza con","endswith":"Termina en","contains":"Contiene","doesnotcontain":"No contiene","isnull":"Is null","isnotnull":"Is not null","isempty":"Is empty","isnotempty":"Is not empty"},"number":{"eq":"Es igual a","neq":"No es igual a","gte":"Es mayor o igual que","gt":"Es mayor que","lte":"Es menor o igual que","lt":"Es menor que","isnull":"Is null","isnotnull":"Is not null"},"date":{"eq":"Es igual a","neq":"No es igual a","gte":"Es posterior o igual a","gt":"Es posterior","lte":"Es anterior o igual a","lt":"Es anterior","isnull":"Is null","isnotnull":"Is not null"},"enums":{"eq":"Es igual a","neq":"No es igual a","isnull":"Is null","isnotnull":"Is not null"}}},"encoded":true},{"title":"Conducta","headerAttributes":{"data-field":"Conducta","data-title":"Conducta"},"width":"100px","field":"Conducta","filterable":{"messages":{"info":"Mostrar filas con valor que","isTrue":"Si","isFalse":"No","filter":"Filtrar","clear":"Limpiar filtro","and":"Y","operator":"Operador","value":"Valor","cancel":"Cancelar"},"operators":{"string":{"eq":"Es igual a","neq":"No es igual a","startswith":"Comienza con","endswith":"Termina en","contains":"Contiene","doesnotcontain":"No contiene","isnull":"Is null","isnotnull":"Is not null","isempty":"Is empty","isnotempty":"Is not empty"},"number":{"eq":"Es igual a","neq":"No es igual a","gte":"Es mayor o igual que","gt":"Es mayor que","lte":"Es menor o igual que","lt":"Es menor que","isnull":"Is null","isnotnull":"Is not null"},"date":{"eq":"Es igual a","neq":"No es igual a","gte":"Es posterior o igual a","gt":"Es posterior","lte":"Es anterior o igual a","lt":"Es anterior","isnull":"Is null","isnotnull":"Is not null"},"enums":{"eq":"Es igual a","neq":"No es igual a","isnull":"Is null","isnotnull":"Is not null"}}},"encoded":true}],"pageable":{"buttonCount":10,"messages":{"display":"Elementos mostrados  {0} - {1} de {2}","empty":"No hay datos.","page":"Página","of":"de {0}","itemsPerPage":"artículos por página","first":"Ir a la primera página","previous":"Ir a la página anterior","next":"Ir a la página siguiente","last":"Ir a la última página","refresh":"Actualizar","morePages":"Mas paginas"}},"sortable":true,"filterable":{"extra":false,"messages":{"info":"Mostrar filas con valor que","isTrue":"Si","isFalse":"No","filter":"Filtrar","clear":"Limpiar filtro","and":"Y","operator":"Operador","value":"Valor","cancel":"Cancelar"},"operators":{"string":{"eq":"Es igual a","neq":"No es igual a","startswith":"Comienza con","endswith":"Termina en","contains":"Contiene","doesnotcontain":"No contiene","isnull":"Is null","isnotnull":"Is not null","isempty":"Is empty","isnotempty":"Is not empty"},"number":{"eq":"Es igual a","neq":"No es igual a","gte":"Es mayor o igual que","gt":"Es mayor que","lte":"Es menor o igual que","lt":"Es menor que","isnull":"Is null","isnotnull":"Is not null"},"date":{"eq":"Es igual a","neq":"No es igual a","gte":"Es posterior o igual a","gt":"Es posterior","lte":"Es anterior o igual a","lt":"Es anterior","isnull":"Is null","isnotnull":"Is not null"},"enums":{"eq":"Es igual a","neq":"No es igual a","isnull":"Is null","isnotnull":"Is not null"}}},"scrollable":false,"messages":{"noRecords":"No records available."},"dataSource":{"type":(function(){if(kendo.data.transports['aspnetmvc-ajax']){return 'aspnetmvc-ajax';} else{throw new Error('The kendo.aspnetmvc.min.js script is not included.');}})(),"transport":{"read":{"url":"/Conducta/ObtenerNotasConductaGeneral?matricula=#=Matricula#"},"prefix":""},"pageSize":5,"page":1,"total":0,"serverPaging":true,"serverSorting":true,"serverFiltering":true,"serverGrouping":true,"serverAggregates":true,"filter":[],"schema":{"data":"Data","total":"Total","errors":"Errors","model":{"fields":{"IdConductaGeneral":{"type":"number"},"Matricula":{"type":"number"},"Fecha":{"type":"date"},"Conducta":{"type":"string"},"IdUsuario":{"type":"number"},"Observaciones":{"type":"string"},"Status":{"type":"number"}}}}}});});
    <\/script>
                    
    </div></div></div><script>
        jQuery(function(){jQuery("\#tabStrip_#=IdAlumno#").kendoTabStrip({"animation":{"open":{"effects":"fade:in","duration":400}}});});
    <\/script>
    ' Generated code:'var $kendoOutput, $kendoHtmlEncode = kendo.htmlEncode;with(data){$kendoOutput='\n    <div class="k-tabstrip-wrapper"><div class="k-widget k-tabstrip k-header" id="tabStrip_'+(IdAlumno)+'"><ul class="k-reset k-tabstrip-items"><li class="k-item k-state-default k-state-active"><a class="k-link" href="#tabStrip_'+(IdAlumno)+'-1">Notas de conducta</a></li></ul><div class="k-content k-state-active" id="tabStrip_'+(IdAlumno)+'-1" style="display:block">\n<div class="k-widget k-grid" id="gridAlumnos_'+(IdAlumno)+'"><table><colgroup><col style="width:56px" /><col style="width:150px" /><col style="width:350px" /><col style="width:100px" /></colgroup><thead class="k-grid-header"><tr><th class="k-header k-filterable" data-field="IdConductaGeneral" data-index="0" data-title="Id" scope="col"><a class="k-grid-filter" href="javascript:void(0)"><span class="k-icon k-filter"></span></a><a class="k-link" href="/Conducta/ObtenerNotasConductaGeneral?matricula=%23%3DMatricula%23&gridAlumnos_%23%3DIdAlumno%23-sort=IdConductaGeneral-asc">Id</a></th><th class="k-header k-filterable" data-field="Fecha" data-index="1" data-title="Fecha" scope="col"><a class="k-grid-filter" href="javascript:void(0)"><span class="k-icon k-filter"></span></a><a class="k-link" href="/Conducta/ObtenerNotasConductaGeneral?matricula=%23%3DMatricula%23&gridAlumnos_%23%3DIdAlumno%23-sort=Fecha-asc">Fecha</a></th><th class="k-header k-filterable" data-field="Observaciones" data-index="2" data-title="Observaciones" scope="col"><a class="k-grid-filter" href="javascript:void(0)"><span class="k-icon k-filter"></span></a><a class="k-link" href="/Conducta/ObtenerNotasConductaGeneral?matricula=%23%3DMatricula%23&gridAlumnos_%23%3DIdAlumno%23-sort=Observaciones-asc">Observaciones</a></th><th class="k-header k-filterable" data-field="Conducta" data-index="3" data-title="Conducta" scope="col"><a class="k-grid-filter" href="javascript:void(0)"><span class="k-icon k-filter"></span></a><a class="k-link" href="/Conducta/ObtenerNotasConductaGeneral?matricula=%23%3DMatricula%23&gridAlumnos_%23%3DIdAlumno%23-sort=Conducta-asc">Conducta</a></th></tr></thead><tbody><tr class="k-no-data"><td colspan="4"></td></tr></tbody></table><div class="k-pager-wrap k-grid-pager"><a class="k-link k-pager-nav k-state-disabled k-pager-first" data-page="1" href="#" title="Ir a la primera página"><span class="k-icon k-i-seek-w">seek-w</span></a><a class="k-link k-pager-nav k-state-disabled" data-page="0" href="#" title="Ir a la página anterior"><span class="k-icon k-i-arrow-w">arrow-w</span></a><ul class="k-pager-numbers k-reset"><li><span class="k-state-selected" data-page="1">1</span></li></ul><a class="k-link k-pager-nav k-state-disabled" data-page="2" href="#" title="Ir a la página siguiente"><span class="k-icon k-i-arrow-e">arrow-e</span></a><a class="k-link k-pager-nav k-state-disabled k-pager-last" data-page="1" href="#" title="Ir a la última página"><span class="k-icon k-i-seek-e">seek-e</span></a><span class="k-pager-info k-label">No hay datos.</span></div></div><script>\n\tjQuery(function(){jQuery("#gridAlumnos_'+(IdAlumno)+'").kendoGrid({"columns":[{"title":"Id","headerAttributes":{"data-field":"IdConductaGeneral","data-title":"Id"},"width":"56px","field":"IdConductaGeneral","filterable":{"messages":{"info":"Mostrar filas con valor que","isTrue":"Si","isFalse":"No","filter":"Filtrar","clear":"Limpiar filtro","and":"Y","operator":"Operador","value":"Valor","cancel":"Cancelar"},"operators":{"string":{"eq":"Es igual a","neq":"No es igual a","startswith":"Comienza con","endswith":"Termina en","contains":"Contiene","doesnotcontain":"No contiene","isnull":"Is null","isnotnull":"Is not null","isempty":"Is empty","isnotempty":"Is not empty"},"number":{"eq":"Es igual a","neq":"No es igual a","gte":"Es mayor o igual que","gt":"Es mayor que","lte":"Es menor o igual que","lt":"Es menor que","isnull":"Is null","isnotnull":"Is not null"},"date":{"eq":"Es igual a","neq":"No es igual a","gte":"Es posterior o igual a","gt":"Es posterior","lte":"Es anterior o igual a","lt":"Es anterior","isnull":"Is null","isnotnull":"Is not null"},"enums":{"eq":"Es igual a","neq":"No es igual a","isnull":"Is null","isnotnull":"Is not null"}}},"encoded":true},{"title":"Fecha","headerAttributes":{"data-field":"Fecha","data-title":"Fecha"},"width":"150px","template":"'+( kendo.toString(FechaInicio, \"MM/dd/yyyy \") )+'","field":"Fecha","filterable":{"messages":{"info":"Mostrar filas con valor que","isTrue":"Si","isFalse":"No","filter":"Filtrar","clear":"Limpiar filtro","and":"Y","operator":"Operador","value":"Valor","cancel":"Cancelar"},"operators":{"string":{"eq":"Es igual a","neq":"No es igual a","startswith":"Comienza con","endswith":"Termina en","contains":"Contiene","doesnotcontain":"No contiene","isnull":"Is null","isnotnull":"Is not null","isempty":"Is empty","isnotempty":"Is not empty"},"number":{"eq":"Es igual a","neq":"No es igual a","gte":"Es mayor o igual que","gt":"Es mayor que","lte":"Es menor o igual que","lt":"Es menor que","isnull":"Is null","isnotnull":"Is not null"},"date":{"eq":"Es igual a","neq":"No es igual a","gte":"Es posterior o igual a","gt":"Es posterior","lte":"Es anterior o igual a","lt":"Es anterior","isnull":"Is null","isnotnull":"Is not null"},"enums":{"eq":"Es igual a","neq":"No es igual a","isnull":"Is null","isnotnull":"Is not null"}}},"encoded":true},{"title":"Observaciones","headerAttributes":{"data-field":"Observaciones","data-title":"Observaciones"},"width":"350px","field":"Observaciones","filterable":{"messages":{"info":"Mostrar filas con valor que","isTrue":"Si","isFalse":"No","filter":"Filtrar","clear":"Limpiar filtro","and":"Y","operator":"Operador","value":"Valor","cancel":"Cancelar"},"operators":{"string":{"eq":"Es igual a","neq":"No es igual a","startswith":"Comienza con","endswith":"Termina en","contains":"Contiene","doesnotcontain":"No contiene","isnull":"Is null","isnotnull":"Is not null","isempty":"Is empty","isnotempty":"Is not empty"},"number":{"eq":"Es igual a","neq":"No es igual a","gte":"Es mayor o igual que","gt":"Es mayor que","lte":"Es menor o igual que","lt":"Es menor que","isnull":"Is null","isnotnull":"Is not null"},"date":{"eq":"Es igual a","neq":"No es igual a","gte":"Es posterior o igual a","gt":"Es posterior","lte":"Es anterior o igual a","lt":"Es anterior","isnull":"Is null","isnotnull":"Is not null"},"enums":{"eq":"Es igual a","neq":"No es igual a","isnull":"Is null","isnotnull":"Is not null"}}},"encoded":true},{"title":"Conducta","headerAttributes":{"data-field":"Conducta","data-title":"Conducta"},"width":"100px","field":"Conducta","filterable":{"messages":{"info":"Mostrar filas con valor que","isTrue":"Si","isFalse":"No","filter":"Filtrar","clear":"Limpiar filtro","and":"Y","operator":"Operador","value":"Valor","cancel":"Cancelar"},"operators":{"string":{"eq":"Es igual a","neq":"No es igual a","startswith":"Comienza con","endswith":"Termina en","contains":"Contiene","doesnotcontain":"No contiene","isnull":"Is null","isnotnull":"Is not null","isempty":"Is empty","isnotempty":"Is not empty"},"number":{"eq":"Es igual a","neq":"No es igual a","gte":"Es mayor o igual que","gt":"Es mayor que","lte":"Es menor o igual que","lt":"Es menor que","isnull":"Is null","isnotnull":"Is not null"},"date":{"eq":"Es igual a","neq":"No es igual a","gte":"Es posterior o igual a","gt":"Es posterior","lte":"Es anterior o igual a","lt":"Es anterior","isnull":"Is null","isnotnull":"Is not null"},"enums":{"eq":"Es igual a","neq":"No es igual a","isnull":"Is null","isnotnull":"Is not null"}}},"encoded":true}],"pageable":{"buttonCount":10,"messages":{"display":"Elementos mostrados  {0} - {1} de {2}","empty":"No hay datos.","page":"Página","of":"de {0}","itemsPerPage":"artículos por página","first":"Ir a la primera página","previous":"Ir a la página anterior","next":"Ir a la página siguiente","last":"Ir a la última página","refresh":"Actualizar","morePages":"Mas paginas"}},"sortable":true,"filterable":{"extra":false,"messages":{"info":"Mostrar filas con valor que","isTrue":"Si","isFalse":"No","filter":"Filtrar","clear":"Limpiar filtro","and":"Y","operator":"Operador","value":"Valor","cancel":"Cancelar"},"operators":{"string":{"eq":"Es igual a","neq":"No es igual a","startswith":"Comienza con","endswith":"Termina en","contains":"Contiene","doesnotcontain":"No contiene","isnull":"Is null","isnotnull":"Is not null","isempty":"Is empty","isnotempty":"Is not empty"},"number":{"eq":"Es igual a","neq":"No es igual a","gte":"Es mayor o igual que","gt":"Es mayor que","lte":"Es menor o igual que","lt":"Es menor que","isnull":"Is null","isnotnull":"Is not null"},"date":{"eq":"Es igual a","neq":"No es igual a","gte":"Es posterior o igual a","gt":"Es posterior","lte":"Es anterior o igual a","lt":"Es anterior","isnull":"Is null","isnotnull":"Is not null"},"enums":{"eq":"Es igual a","neq":"No es igual a","isnull":"Is null","isnotnull":"Is not null"}}},"scrollable":false,"messages":{"noRecords":"No records available."},"dataSource":{"type":(function(){if(kendo.data.transports[\'aspnetmvc-ajax\']){return \'aspnetmvc-ajax\';} else{throw new Error(\'The kendo.aspnetmvc.min.js script is not included.\');}})(),"transport":{"read":{"url":"/Conducta/ObtenerNotasConductaGeneral?matricula='+(Matricula)+'"},"prefix":""},"pageSize":5,"page":1,"total":0,"serverPaging":true,"serverSorting":true,"serverFiltering":true,"serverGrouping":true,"serverAggregates":true,"filter":[],"schema":{"data":"Data","total":"Total","errors":"Errors","model":{"fields":{"IdConductaGeneral":{"type":"number"},"Matricula":{"type":"number"},"Fecha":{"type":"date"},"Conducta":{"type":"string"},"IdUsuario":{"type":"number"},"Observaciones":{"type":"string"},"Status":{"type":"number"}}}}}});});\n<\/script>\n                \n</div></div></div><script>\n\tjQuery(function(){jQuery("#tabStrip_'+(IdAlumno)+'").kendoTabStrip({"animation":{"open":{"effects":"fade:in","duration":400}}});});\n<\/script>\n';}return $kendoOutput;'

     

    I know there's an error on my code but I can't find it, i appreciate the help. Thanks.

    Code: 

    @(Html.Kendo().Grid<SIEV.Modelos.Alumno>()
        .Name("gridAlumnos")
        .Columns(columns =>
        {
        columns.Bound(c => c.Matricula).Title("Matricula").Width(100);
        columns.Template(@<text>@item.Nombre @item.Paterno @item.Materno</text>)
                             .ClientTemplate("#=Nombre# #=Paterno# #=Materno#")
                             .Title("Nombre");
     
        columns.Template(@<text>@item.Calle @item.Colonia @(item.NumInt == "null" ? "" : item.NumInt) @item.NumExt</text>)
                               .ClientTemplate("#=Calle# #=Colonia# #=NumInt# #=NumExt#")
                               .Title("Direccion");
        })
        .Sortable()
        .Pageable()
        .Scrollable()
        .Filterable(f => f.Extra(false))
        .ClientDetailTemplateId("template")
        .HtmlAttributes(new { style = "height: 100%; width: 100%; -webkit-align-content: center;", id = "gridAlumnos" })
        .DataSource(dataSource => dataSource
            .Ajax()
            .PageSize(10)
            .Model(model => model.Id(p => p.IdAlumno))
            .Read(read => read.Action("Alumno_Read", "Alumno"))
        )
        .Events(events => events.DataBound("dataBound"))
    )
     
    <script id="template" type="text/kendo-tmpl">
        @(Html.Kendo().TabStrip()
                .Name("tabStrip_#=IdAlumno#")
                .SelectedIndex(0)
                .Animation(animation => animation.Open(open => open.Fade(FadeDirection.In)))
                .Items(items =>
                {
                    items.Add().Text("Notas de conducta").Content(@<text>
        @(Html.Kendo().Grid<SIEV.Modelos.ConductaGeneral>()
                            .Name("gridAlumnos_#=IdAlumno#")
                            .Columns(columns =>
                            {
                                columns.Bound(c => c.IdConductaGeneral).Title("Id").Width(56);
                                columns.Bound(c => c.Fecha).Width(150).ClientTemplate("#= kendo.toString(FechaInicio, \"MM/dd/yyyy \") #");
                                columns.Bound(c => c.Observaciones).Width(350).Title("Observaciones");
                                columns.Bound(c => c.Conducta).Width(100).Title("Conducta");
                            })
                            .DataSource(dataSource => dataSource
                                .Ajax()
                                .PageSize(5)
                                .Read(read => read.Action("ObtenerNotasConductaGeneral", "Conducta", new { idalumno = "#=IdAlumno#" }))
                            )
                            .Pageable()
                            .Sortable()
                            .Filterable(f => f.Extra(false))
                            .ToClientTemplate())
                    </text>
                    );
     
                })
                .ToClientTemplate())
    </script>
     
    <script>
        function dataBound() {
            this.expandRow(this.tbody.find("tr.k-master-row").first());
        }
    </script>
     
    <style>
        .k-detail-cell .k-tabstrip .k-content {
            padding: 0.2em;
        }
     
        .employee-details ul {
            list-style: none;
            font-style: italic;
            margin: 15px;
            padding: 0;
        }
     
            .employee-details ul li {
                margin: 0;
                line-height: 1.7em;
            }
     
        .employee-details label {
            display: inline-block;
            width: 90px;
            padding-right: 10px;
            text-align: right;
            font-style: normal;
            font-weight: bold;
        }
    </style>

  2. Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2310 posts

    Posted 19 Apr 2016 Link to this post

    Hello PIPS,

    We cannot state what is the exact reason for the issue without inspecting an isolated runnable example that demonstrates it. Could you send us one here or in a support ticket?

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