blob: 5e15b9276808627d6a0ce2575de3a80bc2b80a1c (
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
<com:TPanel
CssClass="calendarScaffold">
<com:TActiveDataGrid ID="Calendars"
DataKeyField="UID"
AutoGenerateColumns="false"
OnEditCommand="editRow"
OnCancelCommand="cancelRowEdit"
OnUpdateCommand="saveRow">
<com:TActiveBoundColumn ID="Name"
ReadOnly="true"
HeaderText="Calendar"
DataField="Name" />
<com:TActiveHyperLinkColumn ID="Website"
HeaderText="WWW"
Text="[www]"
Target="_blank"
DataNavigateUrlField="Website" />
<com:TActiveHyperLinkColumn ID="Url"
HeaderText="ICS"
Text="[ics]"
Target="_blank"
DataNavigateUrlField="Url" />
<com:TActiveDropDownListColumn ID="Category"
HeaderText="Category"
DataTextField="Category.Name"
DataValueField="CategoryID"
ListValueField="ID"
ListTextField="Name" />
<com:TActiveTemplateColumn ID="Visible"
HeaderText="Default">
<prop:ItemTemplate>
<com:TActiveCheckBox
OnCheckedChanged="SourceTemplateControl.toggleDefaultState"
CssClass="visibilityToggle">
<prop:Checked><%# $this->Parent->Data->Visible %></prop:Checked>
<prop:CustomData><%# $this->Parent->Data->UID %></prop:CustomData>
</com:TActiveCheckBox>
</prop:ItemTemplate>
<prop:EditItemTemplate>
<com:TCheckBox ID="CheckBox">
<prop:Checked><%# $this->Parent->Data->Visible %></prop:Checked>
</com:TCheckBox>
</prop:EditItemTemplate>
</com:TActiveTemplateColumn>
<com:TActiveBoundColumn ID="CustomName"
HeaderText="Custom name"
DataField="CustomName" />
<com:TActiveBoundColumn ID="CustomUrl"
HeaderText="URL"
DataField="CustomUrl" />
<com:TActiveTemplateColumn ID="CustomImage"
HeaderText="Image">
<prop:ItemTemplate>
<com:TImage>
<prop:ImageUrl><%# $this->Parent->Data->CustomImageUrl %></prop:ImageUrl>
</com:TImage>
</prop:ItemTemplate>
<prop:EditItemTemplate>
<com:TActiveTextBox ID="Value">
<prop:Text><%# $this->Parent->Data->CustomImage %></prop:Text>
</com:TActiveTextBox><br />
<com:SafeActiveFileUpload
OnFileUpload="SourceTemplateControl.uploadRowFile">
<prop:CustomData><%# $this->Parent->Data->UID %></prop:CustomData>
</com:SafeActiveFileUpload>
</prop:EditItemTemplate>
</com:TActiveTemplateColumn>
<com:TActiveEditCommandColumn
HeaderText=""
EditText="Edit"
UpdateText="Save"
CancelText="Cancel" />
</com:TActiveDataGrid>
</com:TPanel>
|