| 1 |
lars |
1 |
<com:TContent ID="body">
|
|
|
2 |
|
|
|
3 |
<h1>TDataGrid Sample 5</h1>
|
|
|
4 |
<h2>Paging</h2>
|
|
|
5 |
|
|
|
6 |
<div style="width:500px">
|
|
|
7 |
<com:TDataGrid
|
|
|
8 |
ID="DataGrid"
|
|
|
9 |
AllowPaging="true"
|
|
|
10 |
PageSize="5"
|
|
|
11 |
PagerStyle.Mode="Numeric"
|
|
|
12 |
PagerStyle.HorizontalAlign="Right"
|
|
|
13 |
Width="100%"
|
|
|
14 |
CellPadding="2"
|
|
|
15 |
HeaderStyle.BackColor="black"
|
|
|
16 |
HeaderStyle.ForeColor="white"
|
|
|
17 |
ItemStyle.BackColor="#BFCFFF"
|
|
|
18 |
ItemStyle.Font.Italic="true"
|
|
|
19 |
AlternatingItemStyle.BackColor="#E6ECFF"
|
|
|
20 |
OnPageIndexChanged="changePage"
|
|
|
21 |
OnPagerCreated="pagerCreated"
|
|
|
22 |
/>
|
|
|
23 |
</div>
|
|
|
24 |
|
|
|
25 |
<com:TPanel GroupingText="Pager Visibility" Width="300px">
|
|
|
26 |
|
|
|
27 |
<com:TCheckBoxList
|
|
|
28 |
AutoPostBack="true"
|
|
|
29 |
RepeatColumns="2"
|
|
|
30 |
OnSelectedIndexChanged="changePagerPosition">
|
|
|
31 |
<com:TListItem Text="Top" />
|
|
|
32 |
<com:TListItem Text="Bottom" Selected="true" />
|
|
|
33 |
</com:TCheckBoxList>
|
|
|
34 |
|
|
|
35 |
</com:TPanel>
|
|
|
36 |
|
|
|
37 |
<com:TPanel GroupingText="Pager Mode" Width="300px">
|
|
|
38 |
|
|
|
39 |
<com:TPanel GroupingText="NextPrev Pager" Width="300px">
|
|
|
40 |
|
|
|
41 |
Next Page Text:
|
|
|
42 |
<com:TTextBox ID="NextPageText" Text="Next" /><br/>
|
|
|
43 |
Prev Page Text:
|
|
|
44 |
<com:TTextBox ID="PrevPageText" Text="Prev" /><br/>
|
|
|
45 |
<com:TButton Text="Submit" OnClick="useNextPrevPager" />
|
|
|
46 |
</com:TPanel>
|
|
|
47 |
|
|
|
48 |
<com:TPanel GroupingText="Numeric Pager" Width="300px">
|
|
|
49 |
|
|
|
50 |
Page Button Count:
|
|
|
51 |
<com:TTextBox ID="PageButtonCount" Text="5" /><br/>
|
|
|
52 |
<com:TButton Text="Submit" OnClick="useNumericPager" />
|
|
|
53 |
</com:TPanel>
|
|
|
54 |
|
|
|
55 |
<com:TPanel GroupingText="Page Size" Width="300px">
|
|
|
56 |
<com:TTextBox ID="PageSize" Text="5" /><br/>
|
|
|
57 |
<com:TButton Text="Submit" OnClick="changePageSize" />
|
|
|
58 |
</com:TPanel>
|
|
|
59 |
|
|
|
60 |
</com:TPanel>
|
|
|
61 |
|
|
|
62 |
<div class="last-modified">$Id: Sample5.page 1650 2007-01-24 06:55:32Z wei $</div></com:TContent>
|