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

unable to show data on the grid when have multiple header

1 Answer 47 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Austin
Top achievements
Rank 1
Austin asked on 15 Sep 2016, 07:02 AM

is there a way to solve this problem where i wanted to maintain the structure of the grid.

<div id="grid" ></div>
var data = [
{"_type":"ProductDetails:#NWProducts","Discount":0,"OrderId":10248,"ProductId":11,"UnitPrice":14.0000,"quanity":12},
{"_type":"ProductDetails:#NWProducts","Discount":0,"OrderId":10248,"ProductId":42,"UnitPrice":9.8000,"quanity":10},
{"_type":"ProductDetails:#NWProducts","Discount":0,"OrderId":10248,"ProductId":72,"UnitPrice":34.8000,"quanity":5},
{"_type":"ProductDetails:#NWProducts","Discount":0,"OrderId":10249,"ProductId":14,"UnitPrice":18.6000,"quanity":9}];
 
 
var grid = $("#grid").kendoGrid({
    columns   :[
    {title:"test",
        columns:[
        {field:"_type", title:"Type"},
        {field:"Discount", title:"Discount"},
        {field:"OrderId", title:"Order Id"},
        {field:"ProductId", title:"Product Id"},
        {field:"UnitPrice", title:"Unit Price"},
        {field:"quanity", title:"Quanity"}]
        }],
         
        dataSource:{
            data:data
        },
        height:400,
        scrollable: true,
        pageable:true,
        columnMenu: true,
        sortable:{
            mode:"multiple"
        }
});

1 Answer, 1 is accepted

Sort by
0
Austin
Top achievements
Rank 1
answered on 15 Sep 2016, 08:52 AM
i able to solve the problem where i doesn't include the correct jquery and kendo script
Tags
Grid
Asked by
Austin
Top achievements
Rank 1
Answers by
Austin
Top achievements
Rank 1
Share this question
or