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

  • Home
  • SEARCH
  • 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 3489714
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T11:25:41+00:00 2026-05-18T11:25:41+00:00

Got an issue, and need your advices I just started writing an editor grid.

  • 0

Got an issue, and need your advices

I just started writing an editor grid. (I will actually use this grid as a search filter editor, i.e. columns with criteria name, operators and values).
Now, for the value field, I want to have different edit controls for different rows. For instance, when a criteria type is string I want to display a text box, when it’s date time, I want a datetime editor.
So the fact is, I need to control the “edit control creation/display” just before editing starts. and it should be different among rows. Unlike the examples I found which are fixed for the columns.

In order to implement this, can you guys please suggest the steps I need to do? I can probably figure out it if one of you can direct me a way.

Thanks and best regards

  • 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-18T11:25:41+00:00Added an answer on May 18, 2026 at 11:25 am

    Actually you can easily accomplish this by dynamically returning different editors and renders depending on the column you’re in. In your ColumnModel object you can define something like this below. Note that i’m getting a type property of each record to determine its type. I have an object containing all my different types of editors, and the same for renderers, and then based on the the type i dish out a different editor or renderer for that cell.

    editors: { 'default': {xtype:'textfield'},
               texttype: {xtype:'textfield'},
               numbertype: {xtype:'numberfield'},
               combotype: {xtype:'combo'}....... etc. } 
    
    getCellEditor: function(colIndex, rowIndex) {
                var store = Ext.getCmp('mygrid').getStore();
                var field = this.getDataIndex(colIndex);
                var rec = store.getAt(rowIndex);
                var type = rec.get('type');
                if (type in this.editors) {
                    return this.editors[type];
                } else {
                    return this.editors['default'];
                }
    
            },
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got two questions/issues regarding the AspxPivotGrid . When I use the customization window
I've got a really unusual issue where even though the debugger claims to be
I'm having another iOS related issue. This time relating to addSubView on a UIView.
Got a question for the font named Rockwell Std Light. I used in Photoshop
I've got a Stream object and I am using BeginRead to begin reading (obviously)
I am developing an app with GCC, mostly on Windows, until I got a
I'm trying to insert a bunch of rows into an empty UITableView in one
Possible Duplicate: Evaluate C# string with math operators So lets say I have a
I've been given the task to write a plugin for Trac. It should provide
I've been trying to understand why the following code gives me a bad pointer

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.