Custom active controls in Prado Part II

We’ve been working on getting drag-drop features to work in Prado for a while now, and we got it on a level which fills our needs.

The current state lets you register drags, drops and drag-drop. The most annoying limitation we have at the moment is that you only get the drop container on callback. We currently slip around that by sending our data with the callback parameters.

The demo attached here shows dragsdrops (green), drags (yellow) and drops (blue). When an element is dropped the label is updated with the name of the drop element and the callback parameter data. The callback data is currently set up in the js file and it’s only set for the dragdrop elements, but there should be nicer ways to do this.

The component only uses javascript that ships with Prado, so no external libs are required. The actual MyDraggable php class is based on another Prado component, and it probably needs some cleanup as well. The demo ships with Prado 3.1, so just unzip and set correct permissions.

Kudos goes to my co-worker Lars-Olav for getting the client side stuff to work. Javascript is not my strong side 😉

Online demo –
Download source –

Update: Source file is not up to date. Will fix asap.

Custom active controls in Prado Part I

There has been lots of interest in the AJAX (active controls) features in Prado lately, but the lack of client side controls has been a turn-off for many. The area that’s gotten most request is drag / drop. Prado 2 had controls for this, but it’s been absent in Prado 3. Several users on the forums has been trying to get it working, but nothing has ever been completed. The main issue has been the communication between the client side scripts and the server side control (callbacks). I’ve spent some time digging trough the Prado code and created a concept control which fires a callback.


MyDraggable.js code



Stay tuned for Part II which hopefully shows something more useful 🙂

Prado 3.1 released!

Earlier today the Prado team released version 3.1 of the Prado Framework. The new features includes AJAX support trough Active Controls, some cool new database support and various other new services and controls. Go here to see the release announcement.

Backbase – A kickass AJAX framework

I’ve got a upcoming project that requires some complex interaction services and I’m looking around for frameworks that suits my needs. Almost everything I develop gets done using the Prado Framework. The AJAX support in Prado is pretty new (at least for the 3.x version), so I’ll probably need something that offers more in terms of integrated services and controls. Prado supplies some of the underlying features, but I do not have the time to re-invent several wheels. I know that there are plans for new ajax features and controls in Prado 3.1, but I can’t sit around waiting for that.

It’s been quite some time since the first time I heard about the Backbase framework. I’ve never gotten around to take it for a spin, but I’ve spent some time reading the documentation and checking out the samples. The Backbase Travel Demo is especially impressive. The controls and widgets that ships with the package are pretty impressive as well. I hope to get time to give it a spin this weekend. If I do I’ll do a short writeup on my impressions and experiences.