PDA

View Full Version : [CLOSED] Checkbox: Event



tanky65
Jul 29, 2012, 9:27 PM
Simply ...
how could I perform a start and stop of a TaskManager.Task using a checkbox on client side ?
what event have I to call? is it possible something as follows ?


<ext:Checkbox ID="Checkbox1" runat="server" BoxLabel="Disable">
<Listeners>
<[??????eventname??????] Handler="if ( checked ) {#{TaskManager1}.startTask('refreshdata');}
else {#{TaskManager1}.stopTask('refreshdata');}" />
</Listeners>
</ext:Checkbox>


thanks,
bye

Vladimir
Jul 29, 2012, 10:33 PM
<Change Handler="if ( this.getValue() ) {#{TaskManager1}.startTask('refreshdata');} else {#{TaskManager1}.stopTask('refreshdata');}" />

tanky65
Jul 30, 2012, 8:40 AM
ok,Thanks.