Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. How to show a Grid into modal window

How to show a Grid into modal window

Scheduled Pinned Locked Moved ASP.NET
javascriptasp-netcsharphtmlcss
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    luismalpizar
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups