mardi 2 décembre 2014

jqGrid - id stating jqg'x' after insert


Vote count:

0




I am having trouble binding the ID when adding to a row in a jqGrid


What is confusing is that on loading the grid, the debugger states that the id is actually the correct number



jQuery("#grid").jqGrid({
datatype: "local",
data: list,

// So in the list element above, lets say index [0] property id
// is actually a number... and isn't 'jqg0' so all good


The rest of the grid ID initalising code..



colNames: ['id'],
colModel: [
{ name: 'id', index: 'id', editable: false, hidden: false, hidedlg: true },


However, if I go out of the page and go back into it, the id will show the correct number...


So does anyone know why the id isn't showing the number inside the grid?


(My experience with jqGrid is limited so if I need to show anything else, let me know what I need to show and I be happy to post it)



asked 36 secs ago







jqGrid - id stating jqg'x' after insert

Aucun commentaire:

Enregistrer un commentaire