ASP.NET MVC Control - asp.net-mvc

Can anybody recommend a combobox/drop down list control that also has checkboxes on each row? It would also need to support multi select.
Thanks.

You can use the RadComboBox along with a little tweaking as provided for by this telerik community project, found here.
Should all work fine in MVC.

there one from SyncFusion.com with code for both Razor and aspx but I doubt you'll be able to find a free one.

Related

How can we check if MVC view is partial or not in solution explorer

I am working on an existing Asp.net MVC 4 project and I want to know if there is any way to check in solution explorer that if view is partial or not. Please suggest.
Partials often have an underscore prefix in their name. Other than that, nothing really separates them from other views.

Does MVCContrib support MVC4?

Does MVCContrib support MVC4? I am trying to use it in my project. Can any one help me with an example?
Does MVCContrib support MVC4?
No.
The documentation mentions support for the script and style bundling of MVC4. Other discussions on codeplex indicate that T4MVC in MVC4 is working for people.
https://t4mvc.codeplex.com/documentation
Support for MVC's script and style bundles
Starting from MVC4, one can define "bundles" of scripts and
stylesheets which are automatically combined and minified. However,
magic strings are used to define the resource URLs. To eliminate them,
follow steps 1 to 3 below.
It appears full support for this is still being added. But the features that worked in MVC2 I know still worked in MVC3 because I used them in MVC3; but the documentation does not explicitly say it works with MVC3. I suspect that every feature in MVC4 that was part of MVC3 still works in MVC4.
Here is the reference discussion for bundling:
http://t4mvc.codeplex.com/discussions/399205
T4MVC is still better than relying on magic strings to reference controller actions and view names. In my opinion the next version of MVC just needs to include T4MVC in the base feature set. Until that happens I'll continue to use T4MVC.

How do you get the area of the current request when using MVC 2 RC?

I was using MVC 1.0 RTM, and the Haack solution for Areas
I just recently moved to MVC2 RC and I'm using single project areas with my controllers in separate assemblies. My problem is that in the MVC 1 solution I ALWAYS had "area" in my RouteData.Values collection, in MVC2 RC it doesn't exist. Do you know how to get this in MVC2 RC?
Thanks in advance!
This is kept in a DataToken for the route. Namely, route.DataTokens["area"]. Look at AreaHelpers.cs in the MVC source for details.
By the way, when you ask a question like this, you should show the code you're using which is not working. It makes it much easier to supply an answer. Right now, I don't know if you've already tried the method above, but are making an error with it, or if you haven't discovered this yet.

MVC2 .NET - Paging

Ok I know there is some code out there for pagination in MVC but it seems to be for version 1, Scott mentioned that he was goint to implement to code into the release of version 2.
Was this code included? If so whats the best way to achieve pagination in MVC2?
Thanks
You can lool at mvc contrib. It contains grid control and pager.
I've decided to do this the old fashioned way and it works.
Yikes this is an old question and a poor answer by me. This was asked around the time of MVC beta. There is plenty of stuff on the web that will now advise on Pagination;
http://www.c-sharpcorner.com/uploadfile/amit12345/pagination-in-mvc-application/

Has anyone got NVelocity working with ASP.NET MVC Preview 5?

I'm guessing I need to implement an NVelocityViewEngine and NVelocityView - but before I do I wanted to check to see if anyone has already done this.
I can't see anything in the trunk for MVCContrib.
I've already seen the post below - I'm looking specifically for something which works with Preview 5:
Testing ScottGu: Alternate View Engines with ASP.NET MVC (NVelocity)
Otherwise I'll start writing one :)
There's an NVelocity implementation in MvcContrib. You need to reference the MvcContrib.Castle dll.
Personally I don't have a clue about NVelocity, but here is a link that might help you.

Resources