2

I'm having a weird issue with jqGrid. What I noticed is if I have an array of data with just one item in it, it displays nothing.(checked the html elements no data there). Have 2 items in the array it displays only the first item. basically it seems to be dropping off the last item in the array.

datatype is "local" and I have a array of data that is being used for the data field. I never noticed the issue before because I usually have a lot of data not just 1 or 2 items. nothing else special about it.

Psychoboy
  • 308
  • 1
  • 3
  • 10

2 Answers2

2

You mentioned the code used rowNum: -1 which is no longer supported by jqGrid. For now the easiest solution is to set rowNum to a large number.

See this question for more information and other potential workarounds.

Community
  • 1
  • 1
Justin Ethier
  • 131,333
  • 52
  • 229
  • 284
  • 1
    +1 from me. Especially in case of the usage of *local* data only positive values of `rowNum` are allowed. – Oleg Jun 01 '12 at 22:36
  • Well I tested this with setting it as you said and the getDataIds doesn't work correctly. I did upgrade to 4.3.3 and that seemed to fix it. Was running 4.3.2 – Psychoboy Jun 05 '12 at 15:50
0

Setting the size to the array size almost fixed it completely. The issue was still the getDataIds method. Was running 4.3.2 upgrading to 4.3.3 completely fixed it.

Psychoboy
  • 308
  • 1
  • 3
  • 10