Ticket #814 (new defect)

Opened 7 months ago

Last modified 7 months ago

Disabling active control auto postback

Reported by: dayton Owned by: xue
Priority: normal Milestone: 3.2
Component: Prado Framework v3 Version: 3.1
Severity: minor Keywords: active controls, autopostback
Cc:

Description

Based on the discussion in the forum, it seems like this is a bug with no obvious workaround. See post and subsequent discussion: http://www.pradosoft.com/forum/index.php/topic,9535.0.html

Thanks for your help.

Change History

Changed 7 months ago by pudlo

This is my proposition of fixing this issue. Hope this will helpfull and correct.

Index: /home/pudlo/workspace/prado/Web/UI/ActiveControls/TBaseActiveControl.php =================================================================== --- /home/pudlo/workspace/prado/Web/UI/ActiveControls/TBaseActiveControl.php (revision 2349) +++ /home/pudlo/workspace/prado/Web/UI/ActiveControls/TBaseActiveControl.php (working copy) @@ -352,7 +352,10 @@

//remove true as default to save bytes if($optionsCausesValidation?===true)

$optionsCausesValidation?=;

- $cs->registerCallbackControl($class, $options); + + //TODO: I'm not a Prado developer please check that this is good place to add this condition + if($this->getControl()->hasProperty('AutoPostback?') && $this->getControl()->getAutoPostback()) + $cs->registerCallbackControl($class, $options);

}

/**

Note: See TracTickets for help on using tickets.