Click here to Skip to main content
15,899,825 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hii to all,
Iam trying to create checkboxlistfor in my view(MVC3Razor) to show list of employee roles.But in my html helper i didn't find checkboxlistfor.Please any one tell me is checkboxlistfor is not present in MVC3,if not present please tell me from which version of mvc it is present,how should i add it to my current version(i.e MVC3).Thanks in advance

Thanks
Ramu
Posted
Comments
mgoad99 28-Jun-13 17:42pm    
I have wished for a checkboxlist in MVC also. As of the most recent version MVC4 there is still no built in HTML helper for that. There are some articles that explain how to create your own. Here is one example on Codeproject
http://www.codeproject.com/Articles/292050/CheckBoxList-For-A-missing-MVC-extension

1 solution

You can do this with MVC 3.But there is no existing extension method for checkboxlistfor. But you could use below mentioned url for find out how to do with custom extension method.
Check this out : CheckBoxList(For) - A missing MVC extension[^]

I hope this will help to you.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900