From 54900d0145dfda07bde40dc6e1f0b31935b55444 Mon Sep 17 00:00:00 2001 From: xue <> Date: Tue, 17 Jan 2006 23:58:54 +0000 Subject: --- demos/quickstart/protected/controls/TopicList.tpl | 2 +- .../protected/pages/Controls/DataGrid.page | 9 ++++++++ .../pages/Controls/Samples/TDataGrid/Sample1.page | 14 ++++++++++++ .../pages/Controls/Samples/TDataGrid/Sample1.php | 25 ++++++++++++++++++++++ 4 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 demos/quickstart/protected/pages/Controls/DataGrid.page create mode 100644 demos/quickstart/protected/pages/Controls/Samples/TDataGrid/Sample1.page create mode 100644 demos/quickstart/protected/pages/Controls/Samples/TDataGrid/Sample1.php (limited to 'demos/quickstart/protected') diff --git a/demos/quickstart/protected/controls/TopicList.tpl b/demos/quickstart/protected/controls/TopicList.tpl index c7e36184..f9992425 100644 --- a/demos/quickstart/protected/controls/TopicList.tpl +++ b/demos/quickstart/protected/controls/TopicList.tpl @@ -38,7 +38,7 @@ Validation Controls
TRepeater
TDataList
-TDataGrid
+TDataGrid
Active Controls
Authoring New Controls
diff --git a/demos/quickstart/protected/pages/Controls/DataGrid.page b/demos/quickstart/protected/pages/Controls/DataGrid.page new file mode 100644 index 00000000..9170fe45 --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/DataGrid.page @@ -0,0 +1,9 @@ + + +

TDataGrid

+

+TBC +

+ + +
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/Samples/TDataGrid/Sample1.page b/demos/quickstart/protected/pages/Controls/Samples/TDataGrid/Sample1.page new file mode 100644 index 00000000..5c24405e --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/Samples/TDataGrid/Sample1.page @@ -0,0 +1,14 @@ + + +

TDataGrid Sample 1

+ + + + +
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/Samples/TDataGrid/Sample1.php b/demos/quickstart/protected/pages/Controls/Samples/TDataGrid/Sample1.php new file mode 100644 index 00000000..bf11b133 --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/Samples/TDataGrid/Sample1.php @@ -0,0 +1,25 @@ +'John','age'=>'31'), + array('name'=>'Bea','age'=>'35'), + array('name'=>'Rose','age'=>'33'), + array('name'=>'Diane','age'=>'37'), + array('name'=>'Bob','age'=>'30'), + ); + } + + public function onLoad($param) + { + parent::onLoad($param); + $this->DataGrid->DataSource=$this->getDataSource(); + $this->DataGrid->SelectedItemIndex=2; + $this->DataGrid->dataBind(); + } +} + +?> \ No newline at end of file -- cgit v1.2.3