KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a grid column with checkboxes and I want to give them a different id. Id is based on the CustomerId in the Model. What syntax should I use to concatenate the chk_@item.CustomerId. // using the telerik grid id="chk_@item.OrderNumber" // does not work // this will put the value of @item.Customernumber as the checkbox id columns.Template(@<text><input type='checkbox' id="@item.Customernumber" name="@item.CustomerNumber" value="@item.OrderNumber" /></text>).Width(50) second option: columns.Template(@<text><input type='checkbox' id="chk_@item.Customernumber" name="@item.CustomerNumber" value="@item.OrderNumber" /></text>).Width(50) the above will render as <input type="checkbox" id="chk_@item.Customernumber" value=... />
Tags (comma-separated)
Save Edits
Cancel