|
<div>
<ejs-grid id="Grid" dataSource="ViewBag.DataSource" allowPaging="true" allowFiltering="true">
<e-grid-columns>
...
<e-grid-column field="ShipCity" headerText="Ship City" template="#temp" width="170"></e-grid-column>
</e-grid-columns>
</ejs-grid>
</div>
<script id="temp" type="text/x-template">
@Html.ActionLink("${ShipCountry}", "Index")
</script> |
|
@{
Object custom = new Object();
custom = (new { @class = "customcss"});
}
<div>
<ejs-grid id="Grid" dataSource="ViewBag.DataSource" allowPaging="true" allowFiltering="true">
<e-grid-columns>
...
<e-grid-column field="Freight" customAttributes=custom headerText="Freight" format="C2" width="120"></e-grid-column>
</e-grid-columns>
</ejs-grid>
</div>
<style>
.e-grid .e-headercell.customcss
{
background-color: #2382c3;
}
.e-grid .customcss .e-headercelldiv {
font-weight: bold;
}
</style> |
|
<script type="text/x-jsrender" id="customSubCatLink">
<a rel='nofollow' rel='nofollow' href='/SubcategoryBudget/Index/?subCatName=${Category}'>${Category}</a>
</script> |
|
<script type="text/x-jsrender" id="customSubCatLink">
<a rel='nofollow' href="/Orders/Index/120?area=UGCustomer">Orders</a> //This is corresponding anchor tag for the provided ActionLink
</script>
|