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)]);
}
});
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)]);
}
});