This is a migrated thread and some comments may be shown as answers.

I can't fill out my KendoGrid.

0 Answers 31 Views
Grid
This is a migrated thread and some comments may be shown as answers.
totoro
Top achievements
Rank 1
totoro asked on 26 Sep 2012, 07:00 AM
Hi,
I can't fill out my KendoGris whereas the Http request : http://dotnet.habita-com.local/test.json return JSON flux.
I don't think this does contain any strange stuff, since it's mostly the same as the examples on the website. There is just url which is different but it return the same thing.
          
 <div id="grid"></div>
            <script type="text/javascript">
                $(document).ready(function () {
                    var crudServiceBaseUrl = "http://dotnet.habita-com.local/test.json",
                        dataSource = new kendo.data.DataSource({
                            transport: {
                                read: {
                                    url: crudServiceBaseUrl,
                                    dataType: "JSONP"
                               },
                           },
                        });
                    $("#grid").kendoGrid({
                        dataSource: dataSource,
                        columns: [
                            { field: "ProductName", title: "Product Name" },
                            { field: "UnitPrice", title: "Unit Price", format: "{0:c}"},
                            { field: "UnitsInStock", title: "Units In Stock" },
                            { field: "Discontinued" },
                            { command: ["edit", "destroy"], title: "&nbsp;"}]
                    });
                });
            </script>
        </div>

Please let me know if there is a way to fill out this grid with json flux !

No answers yet. Maybe you can help?

Tags
Grid
Asked by
totoro
Top achievements
Rank 1
Share this question
or