[RESOLVED]JqGrid with array of string

Hi Everyone,

I am trying to bind array of string in JqGrid but instead of binding in each row, the data is getting added in single row

JsFiddle : http://jsfiddle.net/SamuraiKenshin/tt7pvj1e/

Please help me on this

Hi samuraikenshin,

Thanks for your post.

samuraikenshin

I am trying to bind array of string in JqGrid but instead of binding in each row, the data is getting added in single row

As for your problem, firstly, you could try to modify your code as below to bind data in each row.

for (var i = 0; i <= mydata.length; i++)
     $("#jQGridDemo").jqGrid('addRowData', i + 1, mydata[i]);

Secondly, you could refer to the loading Data item in following link which describes how to load array data in jqGrid.

Besides, your problem is related to jqGrid, you could post your problem in jqGrid forum for professional help.

Hope it will be helpful to you.

Best Regards,

Fei Han

Thank you Fei Han :) I will post in trirand.

Leave a Reply