Forum
Topic RSS
20:22
14/08/2009
OfflineI work with ASP .NET, and i shipping this data
{"totalgeneral":"1","paginas":"1","registros":"1","filas":
[
{"id":"1", "campos":["1","A253","MonedaHerodes","200","1"]}
]
}
my definition for jqgrid is this:
$("#Grilla").jqGrid({
datatype: "json",
url: "tratarGrilla.ashx?accion=leerArticulos&empresa=" + empresaActual + "&filasPorPagina=" + nroRenglones + "&totalRegistros=" + totalRegistros + "&losCampos=" + lasColumnas,
mtype: 'GET',
height: laAltura,
rowNum: nroRenglones,
shrinkToFit: true,
scrollOffset: 32,
emptyrecords: "No existen registros para observar",
loadtext: "Buscando datos.....",
autowidth: true,
gridview: true, // carga mas veloz
cellLayout: 0,
loadonce: vLoadOnce,
onselectrow: true,
pgbutton: botones,
pginput: elInput,
viewrecords: verRegistros,
loadError: function() { alert('ERROR') },
loadComplete:
function(request) {
var a = request;
alert($(a).val());
},
colNames: ['ID', 'Tit2', 'Tit3', 'Tit4', 'Tit5'],
colModel: [
{ name: 'id', index: 'id', width: 90 },
{ name: 'codigo', index: 'codigo', width: 90 },
{ name: 'descripcion', index: 'descripcion asc', width: 100 },
{ name: 'precio', index: 'precio', width: 80, align: "right" },
{ name: 'cantidad', index: 'cantidad', width: 150, sortable: false}],
jsonReader: {
root: "d.filas",
total: "d.totalgeneral",
page: "d.paginas",
records: "d.registros",
repeatitems: false,
cell: "campos",
id: "id"
},
caption: laEmpresa.nombreArticulo
});
When execute, no display data in grid, and in my alert message in event "loadComplete" display null
What is the problem?
Can someone explain with example if JSON WITH ASP .NET AND JQGRID 3.6.5 WORK?
Three days with this problem and i have not a solution.
Tks in advance
From Buenos Aires, Argentina.... Victor
Victor - Regards from Buenos Aires
Most Users Ever Online: 994
Currently Online:
11 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66
Log In
Home