Condtional formatting in mvccontrib MVC3

Posted by Laghaterohan under C# on 7/1/2012 | Points: 10 | Views : 2163 | Status : [Member] | Replies : 0

I am using MVC Contrib grid. Based on the condition I want my column rows to be formatted. eg. If my item name is show I will style that cell
in color red and will provide user link on which user can click and navigate to another page.

Currently I am using followin syntax which is giving me exected result except for Link. How to include Action Link along with the style...Please help..its urgent...

column.For(jobs => jobs.Status).Attributes(jobs =>
if (jobs.Item.Status == "Show")
return new Dictionary<string, object> {{ "style", "color:red" } }; // I need to include action link here

return new Dictionary<string, object>();

Best Regards,
Rohan Laghate


(No response found.)

Login to post response