blob: 8fc393e73856b8b7c8bc149a1face84020b80a3a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
<com:TContent ID="body">
<h1>TDataGrid Sample 5</h1>
<h2>Paging</h2>
<com:TDataGrid
ID="DataGrid"
AllowPaging="true"
PageSize="5"
PagerStyle.Mode="Numeric"
PagerStyle.HorizontalAlign="Right"
Width="500px"
CellPadding="2"
HeaderStyle.BackColor="black"
HeaderStyle.ForeColor="white"
ItemStyle.BackColor="#BFCFFF"
ItemStyle.Font.Italic="true"
AlternatingItemStyle.BackColor="#E6ECFF"
OnPageIndexChanged="changePage"
OnItemCreated="itemCreated"
/>
<com:TPanel GroupingText="Pager Visibility" Width="300px">
<com:TCheckBoxList
AutoPostBack="true"
RepeatColumns="2"
OnSelectedIndexChanged="changePagerPosition">
<com:TListItem Text="Top" />
<com:TListItem Text="Bottom" Selected="true" />
</com:TCheckBoxList>
</com:TPanel>
<com:TPanel GroupingText="Pager Mode" Width="300px">
<com:TPanel GroupingText="NextPrev Pager" Width="300px">
Next Page Text:
<com:TTextBox ID="NextPageText" Text="Next" /><br/>
Prev Page Text:
<com:TTextBox ID="PrevPageText" Text="Prev" /><br/>
<com:TButton Text="Submit" OnClick="useNextPrevPager" />
</com:TPanel>
<com:TPanel GroupingText="Numeric Pager" Width="300px">
Page Button Count:
<com:TTextBox ID="PageButtonCount" Text="5" /><br/>
<com:TButton Text="Submit" OnClick="useNumericPager" />
</com:TPanel>
</com:TPanel>
</com:TContent>
|