PDA

View Full Version : TreePanel Bug



vasily_87
24 Apr 2012, 2:44 AM
When I click a record , record above is highlighted. The first record repeates as last.
You can see
https://skydrive.live.com/redir.aspx?cid=51f303a672f9dead&resid=51F303A672F9DEAD!124&parid=51F303A672F9DEAD!123&authkey=!AMDc-Zp1cEreGYc

My treepanel:


{
xtype: 'treepanel',
id: 'trpnlSets',
width: 150,
title: '??????',
store: 'GraphSetParamTreeStore',
rootVisible: false,
region: 'west',
viewConfig: {
rootVisible: false
},
listeners: {
beforerender: {
fn: me.onTreepanelBeforeRender,
scope: me
}
},
dockedItems: [
{
xtype: 'menutoolbar',
dock: 'bottom'
}
]
}


My store:


Ext.define('Application.store.GraphSetParamTreeStore', {
extend: 'Ext.data.TreeStore',


constructor: function(cfg) {
var me = this;
cfg = cfg || {};
me.callParent([Ext.apply({
autoLoad: false,
storeId: 'GraphSetParamTreeStore',
proxy: {
type: 'ajax',
api: '{read : /GraphSetParam/Index1}',
url: '/GraphSetParam/Index1',
reader: {
type: 'json'
},
writer: {
type: 'json'
}
},
fields: [
{
name: 'text',
type: 'string'
}
]
}, cfg)]);
}
});

scottmartin
27 Apr 2012, 9:31 AM
I am unable to see what you are trying to report. Can you send a screen?
Have you tried upgrading to 4.1?
http://www.sencha.com/blog/ext-js-4-1-final-released/

Regards,
Scott.

vasily_87
28 Apr 2012, 3:42 AM
Screencast
http://clip2net.com/s/1RpNP

I (http://clip2net.com/s/1RpNP)'m using 4.0.7. I'm going to upgrade to 4.1 after finishing current project.