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 9008907
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T02:03:37+00:00 2026-06-16T02:03:37+00:00

This is my grid: colModel: [ { name: userGroupID, index: userGroupID, width: 50, hidden:true,

  • 0

This is my grid:

   colModel: [  

            { name: "userGroupID", index: "userGroupID", width: 50, hidden:true, align: "left" }, 
            //{ name: "userId", index: "userId", width: 75, align: "left",title:false,search:false, sorttype:'text'},
            { name: "userInfoID", index: "userInfoID", width: 75, align: "left",hidden:true,title:false,search:true, sorttype:'text'},
            { name: "userID", index: "userID", width: 75, align: "left",title:false,search:true, sorttype:'text'},
            { name: "firstName", index: "firstName", width: 75, align: "left",title:false,search:false, sorttype:'text'},
            { name: "organizationName", index: "organizationName", width: 75, align: "left",title:false,search:false, sorttype:'text'},
            { name: 'action', index: 'action', width: 70, align: "left",sortable: false, search:false}          
            ],

I am getting data from server to populate grid and trying to add my own data to the grid.
I used

var grid = jQuery("#jqTable");
   var data = [{"userGroupID":"2","userInfoID":"2","userID":"userID","firstName":"firstName","organizationName":"organizationName"}];
        //jQuery("#jqTableList").addRowData("userGroupID",data);
        grid.jqGrid('addRowData','1',data);
        //jQuery("#jqTableList").trigger("reloadGrid");

It is saying: TypeError: t.p is undefined

u = t.p.rownumbers === true ? 1 : 0;

Please help me..

  • 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-06-16T02:03:38+00:00Added an answer on June 16, 2026 at 2:03 am

    You use addRowData method in the wrong way. If you want to use it to add multiple rows you should change the first parameter of addRowData method.

    You can read the following in the documentation of jqGrid:

    This method can insert multiple rows at once. In this case the data
    parameter should be array defined as [{name1:value1,name2: value2…},
    {name1:value1,name2: value2…} ]
    and the first option rowid should
    contain the name from data object which should act as id of the row.
    It is not necessary that the name of the rowid in this case should be
    a part from colMode

    So if for example userGroupID contains the unique values which could be interpreted as id of every row you can use addRowData in the following form

    grid.jqGrid('addRowData', 'userGroupID', data);
    

    In your current your code which you posted the column with the name '1' will be interpreted as id. By the way it’s very important to specify the id values for the grid. If the column userGroupID (or some other column of the grid) really could be used as id you should add key: true property in the column. The property can used only for one column.

    In general I don’t recommend to use addRowData for filling the grid if the data are known at the time of creating of the grid (see the answer for details). If you have grid with datetype: "local" it’s much more effective to use data: yourArrayWithData. If you need to replace data of the grid you can use

    grid.jqGrid("getGridParam").data = myNewData;
    

    See the answer

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

Sidebar

Related Questions

I have this grid, containing a template: <Grid x:Name=Bar Width=400> <Grid.Resources> <DataTemplate x:Name=ScoreText> <Grid
I use jqGrid and my grid definition is like that: ... colNames:['Type','Date','Message','User Name','Host'], colModel:[{name:'type',index:'type',
i have the following JQgrid implementation colModel: [ { name: 'NameEn', index: 'NameEn', width:
I have grid with several editable cols colModel: [ { name: 'id', width: 1,
i just want to find out the name of this grid to refresh it.
My Colmodel in javascript looks like this jQuery(#testGrid).jqGrid( //Some code colModel: [ { name:
I have a form like this: <form id='myForm'> <input type='text' name='search' /> <input type='text'
I'm trying to scrape this grid from a website: Obviously this is going to
I have created a grid in a doGet() function. This grid contains a dynamic
I have MyContainer User Control with Grid inside. Each cell of this Grid contains

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.