How to show a Grid into modal window
-
Hello I'm trying to do this from weeks and now I'm very confused and lost. Im really newbie with asp.net , my background is desktop dev. I'm using asp.net mvc for this project. I have a telerik grid with headers of documents I want with a double click or click a button to show a modal window with data of the headers and a grid whith details of orders. So far: I have a functional grid with header data, I double click and I can fire the modal window but the grid doesnt show anything I tried with partial views and directly using only the modal. I tried with jquery only and with telerik grid with pretty much same result. The controller that returns json data is working. I tried with another view. Any help, tip, hint would be very apreciated,. Thanks in advance!!!! This is the code of the view:
```
@model System.Data.DataTable
@{
ViewBag.Title = "Lista de pedidos abiertos de clientes";
}<script src="~/Scripts/kendo/cultures/kendo.culture.es-MX.min.js"></script>
<script type="text/javascript">
kendo.culture("es-MX");
</script>
<script src="~/Scripts/kendo/messages/kendo.messages.es-ES.min.js"></script><h2>PEDIDOS DE CLIENTES ABIERTOS</h2>
@(Html.Kendo().Grid<dynamic>()
.Name("PedidosClientes")
.HtmlAttributes(new { style = "font-size:12px;line-height:2em" })
.Columns(columns =>
{
columns.Bound("NumeroInternoSAP").Title("Número Interno").Width(100);
columns.Bound("Serie").Title("Serie").Width(100);
columns.Bound("NumeroPedidoSAP").Title("No.Pedido").Width(115);
columns.Bound("DocCur").Title("Moneda").Width(100);
columns.Bound("DocStatus").Title("Status").Filterable(true).Width(100);
columns.Bound("Cancelado").Title("Cancelado").Filterable(true).Width(120);
columns.Bound("FechaPedido").Title("Fecha Pedido").Filterable(true).Template(@<text></text>).ClientTemplate("#= kendo.toString(kendo.parseDate(FechaPedido),'dd/MMM/yyyy') #").Width(110);
columns.Bound("FechaEntrega").Title("Fecha Entrega").Filterable(true).Template(@<text></text>).ClientTemplate("#= kendo.toString(kendo.parseDate(FechaEntrega),'dd/MMM/yyyy') #").Width(110);
columns.Bound("DocTotal").Title("Monto Pedido").Filterable(false).Format("{0:#,##0.00}").HtmlAttributes(new { style = "text-align:right" }).Width(1