I found a solution in the following thread : http://www.sencha.com/forum/showthre...ew+scroll+item
I had to change some little thinks :
1) i replace the second's panel DataView by a List
2) in the itemtap event of the first list i memorize the index of the selected item, and set the second tab as activeitem
3) in the cardswitch event of the tabpanel i scroll to the position of the second list, if the newCard is the second panel.
Code:
cardswitch : function ( t, newCard, oldCard, index, animated ) {
if (newCard.id == 'newsPanel') {
listId = push.selectedItem; //The index of selected item in first list
if (listId != null)
{
push.pushDataViewNews.scroller.scrollTo({x:0,y:0}, false);
push.pushDataViewNews.select(listId);
var ehtml = push.pushDataViewNews.getNode(listId);
var el = Ext.get(ehtml);
var ykor = el.getY(); //-push.pushDataViewNews.getHeight(); I had to remove this for a succefull scroll
var xkor = el.getX();
push.pushDataViewNews.scroller.scrollTo({x:xkor,y:ykor}, true);
push.selectedItem = null;
}
}
}