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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T01:20:32+00:00 2026-06-18T01:20:32+00:00

I have a gridPanel with the following column: header: ‘Current plan’, tooltip: ‘Current plan’,

  • 0

I have a gridPanel with the following column:

header:        'Current plan',
                        tooltip:       'Current plan',
                        dataIndex:     'plan_id',
                        editor:      new Ext.form.ComboBox({
                           allowBlank:          true,
                           typeAhead:           true,
                           triggerAction:       'all',
                           lazyRender:          true,
                           mode:                'local',
                           valueNotFoundText:   'no data',
                           valueField:          'id',
                           displayField:        'text',
                           store:               new Ext.data.ArrayStore({
                              fields:  ['id', 'text'],
                              data: [
                                 ['1', 'Plan one'],
                                 ['2', 'Plan two'],
                                 ['3',  'Plan three'],
                                 ['4',  'Plan four']
                              ]
                           })
                        }),

So when I edit this field in column – I get “Plan one”, “Plan two”, “Plan three”, “Plan four” as values to choose, when I choose them – dataIndex is set to 1-2-3-4 and displayed in column field like that.
What I want is dataIndex field to stay 1-2-3-4 values (since it’s ones I use in backend), but I want them to show up in my column field like “Plan one”, “Plan two” and so on.

How can I do it? Thanks!

  • 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-18T01:20:33+00:00Added an answer on June 18, 2026 at 1:20 am

    Solved with

    renderer: function(dataIndex){
                                switch(dataIndex)
                                {
                                   case '1':
                                     return 'Plan one';
                                     break;
                                   case '2':
                                     return 'Plan two';
                                     break;
                                   case '3':
                                     return 'Plan three';
                                     break;
                                   case '4':
                                     return 'Plan four';
                                     break;
                                }
                             },
    

    in column model.

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

Sidebar

Related Questions

I have the following code within my .aspx file <ext:GridPanel runat=server ID=GridPanel1 Height=450 Title=EmployeeList
I have created several reusable ExtJS components, similar to the following: MyCustomGridPanel = Ext.extend(Ext.form.GridPanel,
I have an ext js grid like below: var grid = new Ext.grid.GridPanel({ columns:
I have an ExtJS grid like so: var grid = new Ext.grid.GridPanel({ ... });
For example I have grid. //grid for answers_for_online var answersGridForOnline5 = new Ext.grid.GridPanel({ id
I have this ASP code: <ext:GridPanel ID=grid> <ColumnModel runat=server> <Columns> <ext:RowNumbererColumn /> <ext:Column Align=Center
I have a ext:GridPanel. What happens is the First Column's filter works fine, but
I have a a gridpanel that has the following fields: Name ID Address Home_Phone
I currently have a GridPanel with the Ext.ux.RowEditor plugin. Four fields exist in the
I have the following very simple Ext JS 4 script which is supposed to

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.