Excuse me, i am lost in basic use of SlickGrid

47 views
Skip to first unread message

Miguel Enriquez

unread,
Apr 2, 2018, 8:11:29 PM4/2/18
to SlickGrid
i have a sample with static columns and WORK:


 {id: "id", name: "Id", field: "id", width: 60},
            {id: "codigo", name: "Codigo", field: "codigo", width: 60},
            {id: "appat", name: "Ap Pat", field: "appat", width: 60},
            {id: "apmat", name: "Ap Mat", field: "apmat", width: 60},
            {id: "nombres", name: "Nombres", field: "nombres", width: 100},
            {id: "rfc", name: "RFC", field: "rfc", width: 100},
            {id: "curp", name: "CURP", field: "curp", width: 100},
            {id: "fechanac", name: "Fecha Nacimiento", field: "fechanac", width: 100},
            {id: "tipoempleado", name: "Tipo Empleado", field: "tipoempleado", width: 100},
            {id: "supervisor", name: "Supervisor", field: "supervisor", width: 100},
            {id: "puesto", name: "Puesto", field: "puesto", width: 100},
            {id: "sueldo", name: "Sueldo", field: "sueldo", width: 100}

[{"puesto":"AUXILIAR DE HUERTA","codigo":"GOESAE","fechanac":"","tipoempleado":"HUERTA","sueldo":195.0,"apmat":"ESTRADA","id":1503,"rfc":"","curp":"","supervisor":"HUERTA","appat":"GONZALEZ","nombres":"AEYDECEL"}


this is generated dinamically with Java in my servlet but i am lost, why not work??? (the Headers was displayed, but the data not...... :(

[{"field":"aproducto","name":"Producto/Cliente","width":"60","id":"aproducto"},
{"field":"cliente_94","name":"CEDESMART MONTERREY","width":"60","id":"cliente_94"},
{"field":"cliente_87","name":"CEDIS CHIHUAHUA","width":"60","id":"cliente_87"},
{"field":"cliente_90","name":"CEDIS MONTERREY","width":"60","id":"cliente_90"},
{"field":"cliente_41","name":"EMPACADORA SUPREMO DE MONTERREY, S.A. DE C.V.","width":"60","id":"cliente_41"},
{"field":"cliente_55","name":"MIRIAM GUADALUPE MARTINEZ GALLEGOS","width":"60","id":"cliente_55"},
{"field":"cliente_36","name":"RICARDO GAMEZ CARRILLO","width":"60","id":"cliente_36"},
{"field":"cliente_63","name":"SERGIO MACARIO LOPEZ LOPEZ/CREMERIA STA CLARA","width":"60","id":"cliente_63"},
{"field":"cliente_62","name":"UNIDOS LUNA, S.A. DE C.V.","width":"60","id":"cliente_62"},
{"field":"cliente_83","name":"Unión de Ganaderos Lecheros de Juárez S.A. de C.V.","width":"60","id":"cliente_83"}

[{"aproducto":"QUESO","cliente_94":"","cliente_87":"","cliente_90":"1000","cliente_41":"","cliente_55":"","cliente_36":"","cliente_63":"","cliente_62":"","cliente_83":"1233","id":"MANZANAS"}]


i think is a little error....

Thanks
Reply all
Reply to author
Forward
0 new messages