$(function () {
$("#Grid1").ejGrid({
locale: "es-ES",
allowPaging: false,
isResponsive: true,
scrollSettings: { width: 1150, height: 380, enableColumnScrolling: true, enableRowScrolling: true },
allowScrolling: true,
enableTouch: false,
allowReordering: true,
allowSorting: true,
allowFiltering: true,
showColumnChooser: true,
filterSettings: {
filterType: "excel"
},
allowGrouping: true,
groupSettings: { groupedColumns: ["empresa"] },
columns: [
{ field: "empresa", headerText: "Empresa", width: 275, textAlign: ej.TextAlign.Left },
{ field: "provincia", headerText: "Provincia", width: 75, textAlign: ej.TextAlign.Left, tooltip: "#colTip", clipMode: ej.Grid.ClipMode.EllipsisWithTooltip },
{ field: "municipio", headerText: "Municipio", width: 120, textAlign: ej.TextAlign.Left, tooltip: "#colTip", clipMode: ej.Grid.ClipMode.EllipsisWithTooltip },
{ field: "delegacion", headerText: "Delegación", width: 180, textAlign: ej.TextAlign.Left, tooltip: "#colTip", clipMode: ej.Grid.ClipMode.EllipsisWithTooltip },
{ field: "zona", headerText: "Zona", width: 70, textAlign: ej.TextAlign.Left }
]
}
});
function onclick(sender) {
SeriesIndex = sender.data.region.SeriesIndex;
PointIndex = sender.data.region.Region.PointIndex;
leerDatosModal();
$('#myModal').modal('show');
}
$.ajax({
type: "POST",
url: "GridFeatures.aspx/ListadoGridModal",
datatype: "json",
contentType: "application/json",
success: function (result) {
$("#Grid1").ejGrid("dataSource", result.d.result);
}
}); |
$("#Grid1").ejGrid({
locale: "es-ES",
allowPaging: false,
isResponsive: true,
minWidth : 400,
scrollSettings: { width: 1150, height: "100%" },
allowScrolling: true,
..
allowGrouping: true,
groupSettings: { groupedColumns: ["CustomerID"] },
columns: [
{ field: "OrderID", headerText: "Empresa", width: 275, textAlign: ej.TextAlign.Left },
..
]
}); |
$.ajax({
type: "POST",
url: "GridFeatures.aspx/ListadoGridModal",
datatype: "json",
contentType: "application/json",
success: function (result) {
$("#Grid1").ejGrid("dataSource", result.d.result);
}
}); |
$("#Grid1").ejGrid({
locale: "es-ES",
allowPaging: false,
isResponsive: true,
minWidth : 400,
scrollSettings: { width: 1150, height: "100%" },
allowScrolling: true,
..
allowGrouping: true,
groupSettings: { groupedColumns: ["CustomerID"] },
columns: [
{ field: "OrderID", headerText: "Empresa", width: 275, textAlign: ej.TextAlign.Left },
..
]
}); |