0

I have some JSON data coming from a service. I don't know the exact format of JSON object, but i know that it's returning an array. How to auto populating the columns of a jqGrid without specifying the colModel property from this array?

2
  • 1
    You should specify more exactly the format of the JSON data returned from the service. The information that it's an array of rows is not enough.
    – Oleg
    Jan 3, 2012 at 19:30
  • True. So, we have creating a JSON object for colModel dynamically. We made it to work. Thanks Oleg!!!
    – Dinesh
    Jan 9, 2012 at 4:58

1 Answer 1

0

we have to create colModel and add it to the grid dynamically.

Thanks to Oleg for suggesting the answer.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.