I want to add checkbox in the grid column, for that i am using .Template(" Check box code")
same as below example,
columns.Template(@<text>
<input name="selectedProducts" type="checkbox" title="select product" value="@item.ProductID"
@{
if (@item.ProductID)
{
@("checked=checked")
}
}/>
</text>)
But i am getting this value as undefined.
Any ideas will be appreciated for the same.
Thanks in advance!!
same as below example,
columns.Template(@<text>
<input name="selectedProducts" type="checkbox" title="select product" value="@item.ProductID"
@{
if (@item.ProductID)
{
@("checked=checked")
}
}/>
</text>)
But i am getting this value as undefined.
Any ideas will be appreciated for the same.
Thanks in advance!!