PDA

View Full Version : Preventing Tab Change in GroupTabPanel



fsa3
12 Nov 2009, 8:36 AM
I have a single link in a group tab panel that I want not to change the current tab but rather show a dialog.

I'm using the following code:


{
title: 'Change Password',
iconCls: 'x-icon-tickets',
tabTip: 'Change Your Password',

listeners:{ beforetabchange:function(p,nt,ot) {showChangePwd();return false;}}

}


When I have the beforetabchange event nothing seems to happen - when I use beforeshow the dialog appears but the tab itself changes (and the body is blank). What am I doing wrong?