Hello,
I want to create a grid with a hierarchy. I have clients who have differents missions.
I want to class by mission (number) and have informations about this mission. Informations are in my function "Tableau" and return on json list and contains the mission code.
I pass in parameters a which is a list which contains the missions (differents numbers missions).
I want to create a grid with a hierarchy. I have clients who have differents missions.
I want to class by mission (number) and have informations about this mission. Informations are in my function "Tableau" and return on json list and contains the mission code.
I pass in parameters a which is a list which contains the missions (differents numbers missions).
function
createGridMission(a)
{
var
element = $(
"#gridF01"
).kendoGrid({
dataSource: {
data: a,
pageSize: 6,
serverPaging:
true
,
serverSorting:
true
},
height: 450,
sortable:
true
,
pageable:
true
,
detailInit: detailInit,
columns: [
{
field:
"mission"
,
title:
"Mission"
}
]
});
function
detailInit(e) {
$(
"<div/>"
).appendTo(e.detailCell).kendoGrid({
dataSource: {
transport: {
read: {
url:
"/Mob/Client/Tableau?mission="
+ a +
"&id="
+ $(
"#hidCodeClient"
).val(),
dataType:
"json"
}
},
serverPaging:
true
,
serverSorting:
true
,
serverFiltering:
true
,
pageSize:6,
filter: { field:
"mission"
, operator:
"eq"
, value: e.data.mission }
},
scrollable:
false
,
sortable:
true
,
pageable:
true
,
columns: [
{ field:
"periode"
, title:
"Période"
},
{ field:
"debut"
, title:
"Début"
},
{ field:
"fin"
, title:
"Fin"
},
{ field:
"quantite"
, title:
"Quantité"
},
{ field:
"production"
, title:
"Production"
},
{ field:
"facturation"
, title:
"Facturation"
},
{ field:
"solde"
, title:
"Solde"
},
{ field:
"dateSolde"
, title:
"Date solde"
}
]
});
}
}