From d658070b873f2f0cf8e35ea73cfa1e39e05e6750 Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Fri, 10 Jan 2014 17:37:42 +0100 Subject: Added quickstart demo for TActiveRatingList --- .../pages/ActiveControls/ActiveRatingList.page | 32 ++++++++++ .../protected/pages/ActiveControls/Home.page | 18 +++--- .../Samples/TActiveRatingList/Home.page | 71 ++++++++++++++++++++++ .../Samples/TActiveRatingList/Home.php | 9 +++ 4 files changed, 121 insertions(+), 9 deletions(-) create mode 100644 demos/quickstart/protected/pages/ActiveControls/ActiveRatingList.page create mode 100644 demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRatingList/Home.page create mode 100644 demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRatingList/Home.php (limited to 'demos/quickstart/protected/pages') diff --git a/demos/quickstart/protected/pages/ActiveControls/ActiveRatingList.page b/demos/quickstart/protected/pages/ActiveControls/ActiveRatingList.page new file mode 100644 index 00000000..7b6fb83d --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/ActiveRatingList.page @@ -0,0 +1,32 @@ + + +

TActiveRatingList

+ + +

+TActiveRatingList is the active counterpart to the original TRatingList control. +

+ +

+The AutoPostBack property is set to true by default. +Thus, when a radio button is clicked a OnCallback event is +raised after OnSelectedIndexChanged event. +

+ +

+With ActiveControl.EnableUpdate +set to true (default is true), changes to the selection will be updated +on the client side. +

+ +

+List items can not be changed dynamically during a callback request. +

+ +

+Please refer to the original documentation of TRatingList for usage. +

+ + + +
diff --git a/demos/quickstart/protected/pages/ActiveControls/Home.page b/demos/quickstart/protected/pages/ActiveControls/Home.page index 9586f421..6def313a 100755 --- a/demos/quickstart/protected/pages/ActiveControls/Home.page +++ b/demos/quickstart/protected/pages/ActiveControls/Home.page @@ -103,11 +103,6 @@ TActiveButton control. See also the later part of the TActiveRatingList - is an EXPERIMENTAL class that displays clickable images that represent a TRadioButtonList. - -
  • TActiveTextBox represents a text input field on a Web page. @@ -144,6 +139,11 @@ TActiveButton control. See also the later part of the TActiveRatingList + is an EXPERIMENTAL class that displays clickable images that represent a TRadioButtonList. +
  • Active Data Controls

    @@ -201,9 +201,9 @@ TActiveButton control. See also the later part of the TDropContainer & TDraggable represents drag and drop containers. + TDropContainer & TDraggable represents drag and drop containers. The former will make its child controls "draggable" while the latter will raise a callback when a draggable control is dropped on it. @@ -357,7 +357,7 @@ if Javascript was disabled on the client's browser.

    YesNo - + TDropContainer @@ -370,7 +370,7 @@ if Javascript was disabled on the client's browser.

    NoNo - +

    Active Control Basic Infrastructure Classes

    diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRatingList/Home.page b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRatingList/Home.page new file mode 100644 index 00000000..332ccb63 --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRatingList/Home.page @@ -0,0 +1,71 @@ + +

    TActiveRatingList Samples

    + + + + + + + + + + + +
    +A simple TActiveRatingList and its caption: + + + + + + + + + + +
    +TActiveRatingList in vertical mode, SelectedIndex=2 + + + + + + + + + + + + +
    +TActiveRatingList with RatingStyle=blocks, AutoPostback=true, SelectedValue=Good + + + + + + + + + + + +
    +A label to check callback results: + +
    +TActiveRatingList with AllowInput=false, Rating=4.6 + + + + + + + + + + + + +
    +
    \ No newline at end of file diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRatingList/Home.php b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRatingList/Home.php new file mode 100644 index 00000000..5e8ed1bd --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRatingList/Home.php @@ -0,0 +1,9 @@ +labelResult3->Text=$this->Rating3->SelectedValue; + } +} \ No newline at end of file -- cgit v1.2.3