blob: 9aad9d6ecfc5eeca95b6b2adc2d96045f8e7ba44 (
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
|
<com:TActiveDataGrid ID="Calendars"
CssClass="calendarScaffold"
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:TActiveCheckBoxColumn ID="Visible"
HeaderText="Default"
DataField="Visible" />
<com:TActiveBoundColumn ID="CustomName"
HeaderText="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>
|