PDA

View Full Version : [FIXED] RTL: editor missing for locked tree grid column



mankz
2 Apr 2013, 2:20 AM
Run this sample in RTL mode, click tree column (no editor visible). Other columns work ok.


Ext.Loader.setConfig({
enabled: true
});Ext.Loader.setPath('Ext.ux', '../ux');

Ext.require([
'Ext.data.*',
'Ext.grid.*',
'Ext.tree.*',
'Ext.ux.CheckColumn'
]);

Ext.onReady(function() {
Ext.QuickTips.init();

//we want to setup a model and store instead of using dataUrl
Ext.define('Task', {
extend: 'Ext.data.Model',
fields: [
{name: 'task', type: 'string'},
{name: 'user', type: 'string'},
{name: 'duration', type: 'string'},
{name: 'done', type: 'boolean'}
]
});

var store = Ext.create('Ext.data.TreeStore', {
model: 'Task',
proxy: {
type: 'ajax',
//the store will get the content from the .json file
url: 'treegrid.json'
},
folderSort: true
});
var cellEditing = Ext.create('Ext.grid.plugin.CellEditing', {
clicksToEdit: 1
});

//Ext.ux.tree.TreeGrid is no longer a Ux. You can simply use a tree.TreePanel
var tree = Ext.create('Ext.tree.Panel', {
title: 'Core Team Projects',
width: 500,
height: 300,
renderTo: Ext.getBody(),
collapsible: true,
useArrows: true,
rootVisible: false,
store: store,
multiSelect: true,
plugins : cellEditing,
selModel: {
selType: 'cellmodel'
},
columns: [{
xtype: 'treecolumn', //this is so we know which column will show the tree
text: 'Task',
width: 200,
sortable: true,
dataIndex: 'task',
locked: true,
field : {}
}, {
text: 'Assigned To',
width: 150,
dataIndex: 'user',
sortable: true,
field : {}
}]
});

});

mitchellsimoens
2 Apr 2013, 5:38 AM
Thanks for the report! I have opened a bug in our bug tracker.