kendoGrid App_Data?

2 posts, 0 answers
  1. ITA
    ITA avatar
    387 posts
    Member since:
    Aug 2009

    Posted 14 Oct 2018 Link to this post

    Hi

    i use a kendGrid like this:

    It works great, but if i put the src for Chart1 into the "App_Data" folder and change the Session to the App_Data folder
    the grid will not long be displayed. But wh? thanks so far

    <script id="Chart1" src='<%=Session["LoginAbas2"]%>'></script>                
    <div id="example" class="k-content">
        <div id="grid" style="width:50%;"></div>
        <script>
            $(document).ready(function () {
                $("#grid").kendoGrid({
                    dataSource: {
                        data: products,
                        schema: {
                            model: {
                                fields: {
                                    ProductName: { type: "string" },
                                    Bez: { type: "string" },
                                    UnitsInStock: { type: "number" },
                                    Discontinued: { type: "string" }
                                }
                            }
                        },
                        pageSize: 20
                    },
                    height: 430,
                    scrollable: true,
                    sortable: true,
                    filterable: true,
                    pageable: {
                        input: true,
                        numeric: false
                    },
                    columns: [
                        "Bez",
                        { field: "ProductName", title: "Artikelnr.", width: "130px" },
                        { field: "UnitsInStock", title: "Menge", width: "130px" },
                        { field: "Discontinued", title: "Einheit", width: "130px" }
                    ]
                });
            });
        </script>
  2. ITA
    ITA avatar
    387 posts
    Member since:
    Aug 2009

    Posted 17 Oct 2018 in reply to ITA Link to this post

    no Ideas? :-(
Back to Top