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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T08:57:16+00:00 2026-06-09T08:57:16+00:00

I have a grid panel with JSON store, if I give alert (myGrid.model.prototype.fields.keys), it

  • 0

I have a grid panel with JSON store, if I give alert (myGrid.model.prototype.fields.keys), it is showing all fields name ending with id, for example if I have two fields a1, a2, in alert it is showing as (‘a1′,’a2′,’id’). I don’t know how this Id is getting appended to the fields. If I do the same in extjs4.0.2, it’s working fine, but with extjs 4.1.0 it’s showing this problem.

Sample code is:

 tbar : [{
          text : 'Save',
          height : 20,
          handler : function(){
            var gridColumnIds = component.gridStore1.model.prototype.fields.keys;

            // alert(grid1.columns[0].dataIndex)
            // console.log(gridColumnIds);
            alert("grid ids :"+gridColumnIds);
            var gridData = Ext.encode(Ext.pluck(component.gridStore1.data.items,'data'));
            alert("grid data is :"+gridData);
          }
         },{
          text : 'Get Record',
          height : 20,
          handler : function(){
            p1.show();
          }
         }]
  • 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-09T08:57:18+00:00Added an answer on June 9, 2026 at 8:57 am

    Probably it’s caused because you used Model with default idProperty value (idProperty == ‘id’ by default). Try change this property http://docs.sencha.com/ext-js/4-1/#!/api/Ext.data.Model-cfg-idProperty.

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

Sidebar

Related Questions

I am generating data in a grid panel using json store. I have to
I have added checkbox selection model to grid panel. It works fine in IE8
I have grid something like this: Ext.define('Exp.view.dashboard.Tv', { extend: 'Ext.grid.Panel', initComponent: function() { this.columns
I have a grid panel in ExtJS 4 with the following features: extend :
I have a panel grid with various checkboxes. A checkbox is associated with a
I have a view designed like that: Ext.define('MY.view.NotificationMails', { extend: 'Ext.grid.Panel', alias: 'widget.NotificationMailsPanel', id:
I have a set of records in a panel grid where I want to
I have and Update Panel with a Grid inside of it. The grid's data
I have a tab panel that gets populated with a grid when a button
I have a a gridpanel that has the following fields: Name ID Address Home_Phone

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.