*
* @author Wei Zhuo <weizhuo[at]gamil[dot]com>
* @author Bradley Booms <bradley[dot]booms[at]gmail[dot]com>
- * @link http://www.pradosoft.com/
- * @copyright Copyright © 2005-2014 PradoSoft
- * @license http://www.pradosoft.com/license/
+ * @link https://github.com/pradosoft/prado
+ * @copyright Copyright © 2005-2016 The PRADO Group
+ * @license https://github.com/pradosoft/prado/blob/master/COPYRIGHT
* @version $Id$
* @package System.Web.UI.ActiveControls
*/
*/
public function setReadOnly($value)
{
+ if(parent::getReadOnly() === $value)
+ return;
+
parent::setReadOnly($value);
$value = $this->getReadOnly();
$this->callClientFunction('setReadOnly',$value);
*/
public function setRating($value)
{
+ if(parent::getRating() === $value)
+ return;
+
parent::setRating($value);
$value = $this->getRating();
$this->callClientFunction('setRating',$value);
if($this->getActiveControl()->canUpdateClientSide())
{
$client = $this->getPage()->getCallbackClient();
- $code = parent::getClientClassName().'.'.$func;
- $client->callClientFunction($code,array($this,$value));
+ $code = 'Prado.Registry[\''.$this->ClientID.'\'].'.$func.'('.$value.')';
+ $client->evaluateScript($code,array($value));
}
}
*/
public function setCaption($value)
{
+ if(parent::getCaption() === $value)
+ return;
+
parent::setCaption($value);
// if it's an active control, this should not be needed.
$this->callClientFunction('setCaption',$value);