public function GetEndScript()
 {
     $strScript = parent::GetEndScript();
     $ctrlId = $this->ControlId;
     if ($this->intButtonMode == self::ButtonModeSet) {
         $strScript = sprintf('jQuery("#%s").buttonset();', $ctrlId) . "\n" . $strScript;
     } elseif ($this->intButtonMode == self::ButtonModeJq) {
         $strScript = sprintf('jQuery("input:radio", "#%s").button();', $ctrlId) . "\n" . $strScript;
     }
     return $strScript;
 }
 public function GetEndScript()
 {
     $ctrlId = $this->ControlId;
     if ($this->intButtonMode == self::ButtonModeSet) {
         QApplication::ExecuteControlCommand($ctrlId, 'buttonset', QJsPriority::High);
     } elseif ($this->intButtonMode == self::ButtonModeJq) {
         QApplication::ExecuteSelectorFunction(["input:radio", "#" . $ctrlId], 'button', QJsPriority::High);
     }
     $strScript = parent::GetEndScript();
     return $strScript;
 }
Exemplo n.º 3
0
 /**
  * Overrides the radio list get end script to prevent the default JQueryUi functionality.
  * @return string
  */
 public function GetEndScript()
 {
     $strScript = \QListControl::GetEndScript();
     // bypass the QRadioButtonList end script
     return $strScript;
 }