Hi, I am trying to use a row template as show below.
However, the command buttons never show.
What am I missing?
Thanks … Ed
<
RowTemplate
Context
=
"ctx"
>
<
td
>
<
strong
>@ctxName</
strong
>
</
td
>
<
td
>
<
strong
>@ctx.Number</
strong
>
</
td
>
@for (int i = 0; i <
14
; i++)
{
<td>
somedata
</
td
>
}
<
td
>
@* this is where the grid command buttons are supposed to show *@
</
td
>
@*
.
.
.
*@
<
GridColumns
>
<
GridColumn
Field
=
"Name"
Title
=
"Room Type"
Width
=
"150px"
Resizable
=
"true"
/>
<
GridColumn
Field
=
"Number"
Title
=
"Room"
Width
=
"70px"
Resizable
=
"true"
/>
@foreach (var item in Data)
{
<
GridColumn
Field
=
"@item.Name"
Title
=
"@item.Title"
Width
=
"70px"
Resizable
=
"true"
>
</
GridColumn
>
}
<
GridCommandColumn
Width
=
"300px"
>
<
GridCommandButton
Command
=
"Save"
Icon
=
"save"
ShowInEdit
=
"true"
> Update </
GridCommandButton
>
<
GridCommandButton
OnClick="@((args)=> SelectDashboardModel(args.Item as DataModel))"
Icon="edit"> Edit
</
GridCommandButton
>
<
GridCommandButton
Command
=
"Cancel"
Icon
=
"cancel"
ShowInEdit
=
"true"
> Cancel </
GridCommandButton
>
</
GridCommandColumn
>
</
GridColumns
>