It seams, i have an eqaual problem.
There is an CJuiTab widget with 2 Tabs.
1st tab with static content:
$tabs["Rss"]=$this->widget('zii.widgets.CListView',
array(
'dataProvider'=>$dataProvider,
'itemView'=>'_view_rss',
'ajaxUpdate'=>false,
),true);
2nd tab is an Ajax Request
$tabs["Msg"]=array('ajax'=>CController::createUrl('TMsg/AjaxLoadList',array('objekt'=>"TMsg")));
Building the Widget:
$tabWidget=$this->widget('zii.widgets.jui.CJuiTabs', array(
'tabs'=>array(
'Rss'=>array('content'=>$tabs["Rss"],'id'=>'tabRss'),
'Msg'=>$tabs["Msg"]
),
'options'=>array(
'collapsible'=>true,
),
));
The Action TMsg/AjaxLoadList returns an CListView eaqual to the static tab:
[...](loading Data)
$this->renderPartial('_viewTMsg’,array(
'dataProvider'=>$dataProvider
),false,true);
At the end there are 2 tabs with CListView data insight. The content oft those CListView are News headlines. Each row of this CListView is an Ajax Link to open an CJuiDialog to load the whole News into the dialog useing Ajax.
The problem/situation:
1.) Tab Rss (static Tab) is active, CListView shows the Headlines, everything works fine.
2.) By clicking the (e.g. 1st) CListView row, the CJuiDialog opens and the Message ist loading into the CJuiDialog. (fine)
3.) I select tab Msg (ajax tab), the CListView is loaded and displayed. (also fine)
4.) If i select (click on ) a Msg CListView Row e.g. also the 1st row, the CJuiDialog opens and 1 Ajax request received the 1st Message AND(!) at the same time the CJuiDalog from the 1st row oft CListView static tab "Rss" opend again!
5.) If i go to step 1-2 same Problem: a click on the 1st row in the static tab opends the 1st CJuiDalog from static Rss CListView AND Ajax Msg CListView
Every time i switch between static and Ajax tab, one more Ajax requast will be fired to receive the Message if i click a row.
Example: if i switch 10 times between static tab and Ajax tab in order to select an CListView row, the Ajax action "TMsg/AjaxLoadList" is called 10 times, but "only" two CJuiDialogs (1x Rss and 1x Msg) are opend.
May anyone have an advice or help for this problem?
Thank You