Results 1 to 3 of 3

Thread: Differrent cell editors in the single column

  1. #1

    Default Differrent cell editors in the single column

    I have an Ext.grid.Panel with column contained values. Values are different types: text, numbers, dates, boolean. I make a custom cell editor. I have a problem with boolean editor. When I create it, checkboox is not shown in the table. I use such construction for it:

    e.column.setEditor({
    xtype: 'checkbox',
    checked: false
    });

    What is the problem in?

  2. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985
    Answers
    506

    Default

    Are you creating different editor types in the same column at the same time? Does the checkbox appear once you click on the editor?

  3. #3

    Default

    Yes, I have a single column with different editors for each cell in it. (combobox, textfield, datetime and I'd like to create checkboxeditor) Editor is selected by switch-case construction.

    Here is an example of this:
    case 'type1':
    e.column.setEditor({
    xtype: 'combo',
    store: .....,
    queryMode: 'local',
    displayField: 'Name',
    valueField: 'ValueNum',
    typeAhead: true,
    forceSelection: true,
    allowBlank: false,
    listeners: {
    select: function (combo, record, eOpts) {

    }
    }
    });
    break;

    case 'type2':
    e.column.setEditor({
    xtype: 'checkbox',
    checked: true
    })

    This operator is called from 'onBeforeEdit' event of Ext.grid.Panel component.
    In common I have the such problem as in https://www.sencha.com/forum/showthr...editor-broken&. The differences is in using not checkboxcolumn,

Similar Threads

  1. Replies: 1
    Last Post: 13 Jul 2012, 10:25 PM
  2. dataTable/Column: 2 editors in 1 cell
    By felix41382 in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 10 Feb 2010, 5:19 AM
  3. different cell editors in the same column
    By faffou in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 24 Apr 2009, 8:21 AM
  4. Two editors in a single cell
    By varsha.kothari in forum Ext 2.x: Help & Discussion
    Replies: 11
    Last Post: 19 Dec 2008, 1:32 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •