PDA

View Full Version : Nestedlist scroll down to position



Simonhayre
1 Jul 2010, 3:42 AM
Here is a sample of my code.




var nestedList = new Ext.NestedList({
name:'list',
toolbar: {title:strDefaultTitle},
items: [{
{
text: html,
title: 'A',
items: [{
xtype: 'fieldset',
title: 'A1'
},{
xtype: 'fieldset',
title: 'A2'
},{
xtype: 'fieldset',
title: 'A3'
},{
xtype: 'fieldset',
title: 'A4'
},{
xtype: 'fieldset',
title: 'A5'
}]
},{
text: html,
title: 'B',
items: [{
xtype: 'fieldset',
title: 'B1'
},{
xtype: 'fieldset',
title: 'B2'
}]
}]
});



some how, when a user selects List A, I need the child of A to scroll down to A3 automatically. Anyone know how this can be done?