Template Field in Grid column

1 posts, 0 answers
  1. Mona
    Mona avatar
    7 posts
    Member since:
    Apr 2009

    Posted 06 Oct 2012 Link to this post

    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!!

Back to Top