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.

2
  • Something I forgot to mention this only happens with rowNum -1; Commented Jun 1, 2012 at 20:54
  • The workaround I found for now is setting rowNum to the array length Commented Jun 1, 2012 at 20:58

2 Answers 2

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.

Sign up to request clarification or add additional context in comments.

2 Comments

+1 from me. Especially in case of the usage of local data only positive values of rowNum are allowed.
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
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.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.