diff options
author | xue <> | 2006-02-14 14:39:23 +0000 |
---|---|---|
committer | xue <> | 2006-02-14 14:39:23 +0000 |
commit | 45dc5224f9b2eb5f9c24d4eecda2d8a1f6ac5d8c (patch) | |
tree | 212a7e02a2425506f082901b828723d7c51efe99 /demos/quickstart/protected/pages | |
parent | 8b40c8f460b1f6b3cdfa6aef0e7845cefe2fa5be (diff) |
Added changing page size to the datagrid demo and two more FT.
Diffstat (limited to 'demos/quickstart/protected/pages')
-rw-r--r-- | demos/quickstart/protected/pages/Controls/Samples/TDataGrid/Sample5.page | 5 | ||||
-rw-r--r-- | demos/quickstart/protected/pages/Controls/Samples/TDataGrid/Sample5.php | 8 |
2 files changed, 13 insertions, 0 deletions
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TDataGrid/Sample5.page b/demos/quickstart/protected/pages/Controls/Samples/TDataGrid/Sample5.page index 8fc393e7..e4f2f052 100644 --- a/demos/quickstart/protected/pages/Controls/Samples/TDataGrid/Sample5.page +++ b/demos/quickstart/protected/pages/Controls/Samples/TDataGrid/Sample5.page @@ -50,6 +50,11 @@ Page Button Count: <com:TButton Text="Submit" OnClick="useNumericPager" />
</com:TPanel>
+<com:TPanel GroupingText="Page Size" Width="300px">
+<com:TTextBox ID="PageSize" Text="5" /><br/>
+<com:TButton Text="Submit" OnClick="changePageSize" />
+</com:TPanel>
+
</com:TPanel>
</com:TContent>
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/Samples/TDataGrid/Sample5.php b/demos/quickstart/protected/pages/Controls/Samples/TDataGrid/Sample5.php index 30b78765..660c40af 100644 --- a/demos/quickstart/protected/pages/Controls/Samples/TDataGrid/Sample5.php +++ b/demos/quickstart/protected/pages/Controls/Samples/TDataGrid/Sample5.php @@ -60,6 +60,14 @@ class Sample5 extends Sample1 $this->DataGrid->DataSource=$this->Data;
$this->DataGrid->dataBind();
}
+
+ public function changePageSize($sender,$param)
+ {
+ $this->DataGrid->PageSize=TPropertyValue::ensureInteger($this->PageSize->Text);
+ $this->DataGrid->CurrentPageIndex=0;
+ $this->DataGrid->DataSource=$this->Data;
+ $this->DataGrid->dataBind();
+ }
}
?>
\ No newline at end of file |