Hi All,
My requirement is display the model popup on basis of click event row, But i also need to take Id of that record, I was trying to inside Templete. But it is not support,
<GridColumn Field=@nameof(Inspection.Icolumn8) AutoFit="true">
<Template>
@{
var rec = (context as Inspection);
if (rec.RecType.Trim() == "HEAD")
{
<p>@rec.Icolumn8</p>
}
else
{
if (String.IsNullOrEmpty(@rec.Icolumn8))
{
<GridCommandColumns>
<GridCommandColumn Type=CommandButtonType.Save
ButtonOption="@(new CommandButtonOptions()
{ Content = "Add Notes" })">
</GridCommandColumn>
</GridCommandColumns>
}
else
{
<GridCommandColumns>
<GridCommandColumn Type=CommandButtonType.Edit
ButtonOption="@(new CommandButtonOptions()
{ Content = "Edit Notes" })">
</GridCommandColumn>
</GridCommandColumns>
}
}
}
</Template>
is there any other approach to do this task ?