Konw when a widget is dropped in page

Posted by Community Admin on 05-Aug-2018 10:43

Konw when a widget is dropped in page

All Replies

Posted by Community Admin on 03-Dec-2010 00:00

Hi

I would like to know if it's possible to konw when a widget is dropped into a page. is there any event that we can capture to acomplish this?

The objectif is to set a custom property value once it is added to the page.

thanks in advance

Posted by Community Admin on 03-Dec-2010 00:00

Hi Paulo,

There is no server side event that fired when you drop a control on a page. You can do this only on the client by getting an instance of ZoneEditor

<script type="text/javascript">
 
function test()
    alert('test');
function pageLoad()
    alert('load');
    var c = $find('ZoneEditor');
    c.add_command(test);
</script>


Kind regards,
Ivan Dimitrov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.

This thread is closed