From 6394a6ffe3a9f3e4e698603b94503dc96f1e2652 Mon Sep 17 00:00:00 2001 From: "ctrlaltca@gmail.com" <> Date: Thu, 2 Jun 2011 16:06:37 +0000 Subject: upported documentation changes to trunk/ --- .../pages/ActiveControls/CallbackOptions.page | 52 ++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 demos/quickstart/protected/pages/ActiveControls/CallbackOptions.page (limited to 'demos/quickstart/protected/pages/ActiveControls/CallbackOptions.page') diff --git a/demos/quickstart/protected/pages/ActiveControls/CallbackOptions.page b/demos/quickstart/protected/pages/ActiveControls/CallbackOptions.page new file mode 100644 index 00000000..184c116c --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/CallbackOptions.page @@ -0,0 +1,52 @@ + + +

TCallbackOptions

+ + +

+TCallbackOptions allows a common set of callback client-side options +to be attached to one or more active controls. +This can be useful if a lot of active controls on the same page are sharing the same callback client-side options. +Instead of specifying the same set of options again and again inside each control, these can be written once +inside a TCallbackOptions; this TCallbackOptions can be then attached to each control using the +ActiveControl.CallbackOptions property. For a full list of assignable properties, please check the +TCallbackClientSide documentation. +

+ +

+The typical scenario of use for a TCallbackOptions is a page where a lot of active controls needs to +pause the user interaction with a "Please wait" style message until callback completion. +First create a single TCallbackOptions control, assign it an ID and the the needed properties: +

+ + +<com:TCallbackOptions + ID="MyOptions" + ClientSide.OnLoading="... kindly inform the user that he should wait ..." + ClientSide.OnComplete="... callback completed, ready to serve the user again ..." +/> + + +

+Then, share this set of options to one or more active controls; each control will follow them: +

+ + +<com:TActiveButton + Text="simple button" + OnCallback="..." + ActiveControl.CallbackOptions="MyOptions" + ... +/> + +<com:TActiveCheckBox + Text="simple checkbox" + OnCallback="..." + ActiveControl.CallbackOptions="MyOptions" + ... +/> + + + + +
$Id$
\ No newline at end of file -- cgit v1.2.3