This is a migrated thread and some comments may be shown as answers.

Template Field in Grid column

0 Answers 50 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mona
Top achievements
Rank 1
Mona asked on 06 Oct 2012, 09:37 PM
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!!

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Mona
Top achievements
Rank 1
Share this question
or