protected function addAttributesToRender($writer)
{
parent::addAttributesToRender($writer);
$cs = $this->getPage()->getClientScript();
if ($this->getGhosting() == TDraggableGhostingOptions::SuperGhosting) {
$cs->registerPradoScript('dragdropextra');
} else {
$cs->registerPradoScript('dragdrop');
}
$writer->addAttribute('id', $this->getClientID());
$options = TJavaScript::encode($this->getPostBackOptions());
$class = $this->getClientClassName();
$code = "new {$class}('{$this->getClientId()}', {$options}) ";
$cs->registerEndScript(sprintf('%08X', crc32($code)), $code);
}