I have a grid that lists the quantity of every product. However, I'd like the unit type appended to the quantity field. Is it possible to define this in the ASP.NET MVC fluent grid builder, or will I have to write a jQuery script that appends the appropriate unit type for each row? Ideally, the solution would be something along the lines of:
My grid:
The desired output would be (the text in bold is appended):
1.columns.Bound(o => o.Quantity).Title("Quantity").Append(o => o.UnitType);My grid:
01.@(Html.Kendo().Grid<ViewModels.SupplyViewModel>()02. .Name("GridSupply")03. .Columns(columns => {04. columns.Bound(o => o.ProductNo).Title("Product").Width(135);05. columns.Bound(o => o.Quantity).Title("Quantity");06. })07. .DataSource(d => d08. .WebApi()09. .Model(m => m.Id(o => o.OVR_URID))10. .Read(c => c.Url(Url.HttpRouteUrl("DefaultApi", new { controller = "Supply" })))11. )12.)The desired output would be (the text in bold is appended):
01.<tr>02. <td>Product ABC</td>03. <td>1000 BOTTLES</td>04.</tr>05.<tr>06. <td>Product DEF</td>07. <td>1000 BOXES</td>08.</tr>09.<tr>10. <td>Product GHI</td>11. <td>1000 SACKS</td>12.</tr>