tel8618217223380 / prado3

Automatically exported from code.google.com/p/prado3
Other
0 stars 0 forks source link

TDropContainer doesn't publish its ClientSide property #215

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
TDropContainter currently (Prado/3.1.6) doesn't publish a ClientSide 
property, even though in reality it's a (pseudo-)ActiveControl which is 
using a callback mechanism to notify the server side of draggables dropped 
on it. This makes it impossible to implement for ex. a "busy" animation in 
your pages while the drop action is processed on the server-side and the 
results are returned.

The problem can be easily fixed by adding a 

    public function getClientSide()
    {
        return $this->getAdapter()->
                 getBaseActiveControl()->getClientSide();
    }

method to TDropContainer in TDropContainer.php. After that the 
ClientSide.OnPreDispatch, ClientSide.OnPreDispatch, etc. properties will 
be accessible in the templates for the drop container controls too.

Original issue reported on code.google.com by google...@pcforum.hu on 29 Dec 2009 at 3:27

GoogleCodeExporter commented 9 years ago

Original comment by Christophe.Boulain@gmail.com on 11 Jan 2010 at 1:37