-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapp.component.html
56 lines (53 loc) · 2.12 KB
/
app.component.html
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
<dx-drop-down-box
[showClearButton] = "true"
[acceptCustomValue] = "true"
[openOnFieldClick] = "false"
valueChangeEvent = "input"
[hoverStateEnabled] = "true"
keyExpr = "Task_ID"
valueExpr = "Task_ID"
[displayExpr] = "displayExpr"
[dataSource] = "tasks"
(onOpened) = "onOpened($event)"
(onInitialized) = "onInitialized($event)"
(onValueChanged) = "onValueChanged($event)"
(onKeyDown) = "onKeyDown($event)"
(onInput) = "onInput($event)"
[(opened)] = "isOpened"
[(value)] = "value"
>
<div *dxTemplate="let data of 'content'">
<dx-tree-list
[dataSource]="tasks"
keyExpr = "Task_ID"
parentIdExpr = "Task_Parent_ID"
[columnAutoWidth] = "true"
[wordWrapEnabled] = "true"
[showBorders] = "true"
height = "100%"
width = "100%"
[focusedRowEnabled] = "true"
[(focusedRowIndex)] = "focusedRowIndex"
(onSelectionChanged) = "onSelectionChanged($event)"
(onInitialized) = "treeListInitialized($event)"
>
<dxo-search-panel [highlightSearchText]="false" [text]="searchPanelText"></dxo-search-panel>
<dxo-selection mode="multiple"></dxo-selection>
<dxi-column dataField = "Task_ID"></dxi-column>
<dxi-column dataField = "Task_Subject"></dxi-column>
<dxi-column dataField = "Task_Assigned_Employee_ID" caption = "Assigned">
<dxo-lookup [dataSource]="employees" valueExpr="ID" displayExpr="Name"></dxo-lookup>
</dxi-column>
<dxi-column dataField = "Task_Status" caption = "Status">
<dxo-lookup [dataSource]="statuses"></dxo-lookup>
</dxi-column>
<dxi-column dataField = "Task_Priority" caption = "Priority">
<dxo-lookup [dataSource]="priorities" valueExpr="id" displayExpr="value"></dxo-lookup>
</dxi-column>
<dxi-column dataField = "Task_Completion" caption = "% Completed" [customizeText] = "customizeText">
</dxi-column>
<dxi-column dataField = "Task_Start_Date" caption = "Start Date" dataType = "date"></dxi-column>
<dxi-column dataField = "Task_Due_Date" caption = "Due Date" dataType = "date"></dxi-column>
</dx-tree-list>
</div>
</dx-drop-down-box>