Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3754086
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T09:29:28+00:00 2026-05-19T09:29:28+00:00

I have a set of data like the following example and i would like

  • 0

I have a set of data like the following example and i would like to load it into the grid. However, i’m not sure how since the data doesn’t have an name.

[[48803,"DSK1","","02200220","OPEN"],[48769,"APPR","","77733337","ENTERED"]]
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T09:29:29+00:00Added an answer on May 19, 2026 at 9:29 am

    What you need is just use the following localReader

    localReader: {
        repeatitems: true,
        cell: "",
        id: 0
    }
    

    I made for you the demo which shows live how it works.

    UPDATED: How I could find out the reality is not so good as the documentation. The usage of localReader could help you to fill the grid contain with data from data parameter with the custom structure, but another parts of jqGrid: local sorting and searching don’t work correct with this structure of data parameter. I interpret it as a bug. As a pragmatical solution I would recommend you to convert your custom data to array of named objects like

    [{id:48803,col2:"DSK1",col3:"",col4:"02200220",col5:"OPEN"},
     {id:48769,col2:"APPR",col3:"",col4:"77733337",col5:"ENTERED"}]
    

    with the names corresponds to the column names in the colModel. If you will use data parameter in the form, everything will work perfect in jqGrid.

    UPDATED 2: Look at the source of the fixed example and it will be clear what I mean. In your case conversion of the data can be about the following

    var myNewData = [];
    for (var i=0,l=mydata.length; i<l; i++) {
        var d = mydata[i];
        myNewData.push({id:d[0],col2:d[1],col3:d[2],col4:d[3],col5:d[4]});
    }
    

    The solution is not so elegant like with localReader, but it work without any restrictions.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a data set that that I would like to call in a
We have a small data set and would like to search through it in
I have a selection of a huge set of data and I would like
I have a set of controls bound to data, on which I would like
I have a large real 1-d data set called r. I would like plot:
I have a data set that looks like the following: movie (year) genre for
Given a table of input data I would like to have a set o
I have set up a php script to receive url data like this: http://giffgaff.liamwli.co.uk/?name=liamwli
I have set a background on the data-role=page element like so <div data-role=page style=background:
I have a set of data that is structured like this: ItemA.GroupA ItemB.GroupA ItemC.GroupB

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.