follow my html code
<
GridLayout
dock
=
"right"
>
<
RadListView
[items]="detailList" (itemSelected)="onItemSelected($event)" exampleTitle toggleNavButton>
<
template
tkListItemTemplate
class
=
"list-detail"
let-item
=
"item"
>
<
GridLayout
columns
=
" *,*,*"
rows
=
"auto,auto,auto"
>
<
TextField
colSpan
=
"3"
row
=
'0'
*
ngIf
=
"option==='modify' &&hasChild&& item.list"
[(ngModel)]="currentItem.name"></
TextField
>
<
Button
*
ngIf
=
"option==='modify' &&hasChild&& item.list"
col
=
'1'
row
=
'1'
text
=
"save"
(tap)="modifyItem(currentItem)"></
Button
>
<
Button
*
ngIf
=
"option==='modify' &&hasChild&& item.list"
col
=
'2'
row
=
'1'
text
=
"cancel"
(tap)="modifyQuit(item)"></
Button
>
</
GridLayout
>
</
template
>
</
RadListView
>
</
GridLayout
>
thanks a lot ~