[Ajax] [Gridview] requests repeated, complex page

Hi,

I’m facing some issues with ajax requests being repeated, i read some posts and wiki’s on this but i did not find a full solution for my problem.

My page is rather complex in usage of gui-components, the pseude-code is pasted below. Some things a solved with using different solutions than in the wiki.

View:


$this->renderPartial(XUPLOAD, false, false);

$this->getGridViewA() {  $this->renderPartial(GRIDVIEW, false,false) }  // ALWAYS (false, false), no checking on isAjaxRequest


$this->renderPartial(XUPLOAD, false, false);

$this->getGridViewB() {  $this->renderPartial(GRIDVIEW, false,false) }  // ALWAYS (false, false), no checking on isAjaxRequest




$this->getGridViewC() {  $this->renderPartial(GRIDVIEW, false,false) }  // ALWAYS (false, false), no checking on isAjaxRequest




$this->renderPartial(XUPLOAD, false, false);

$this->getGridViewD() {  $this->renderPartial(GRIDVIEW, false,false) }  // ALWAYS (false, false), no checking on isAjaxRequest

getGridViewA and getGridViewB render the same view, but the grids have a different id,model and dataprovider

These gridviews have 3 ajax links added in the summary text to alter the data provider. (the table that contains the data is self-referenced, these links set a parameter

to set how ‘deep’ it should look in the tree for data).

The first (solved, perhaps this helps others) problem whas: when NOT using two times false for the renderPartial(GRIDVIEW, false,false) the XUploads where uploading

one submitted file three times.

When setting renderPartial(GRIDVIEW, false,false) this was fixed, BUT the ajax links in the summaryText and the Buttoncolumn (update,delete) of these views, are still repeated, only once. So: clicked one time, two requests are issued.

This is the last problem i have with this (complex?) view.

brechtvb