I'm relatively new to MVC and looking to output some data and paginate through it. I don't want some fancy JQuery pagination or anything like that, it has to run server side. I have done this sort of thing previously using Gridviews etc, but not sure how to achieve this using ASP.NET MVC. Does anyone have any ideas how to do this?
I am using the following:
Razor,
C#
Entity Framework,
LINQ
This is a famous tutorial http://nerddinnerbook.s3.amazonaws.com/Part8.htm
I think you'll find that this should help you http://msdn.microsoft.com/en-us/magazine/gg650669.aspx
Related
Is it possible to take advantage of a polymorphic viewmodel when using the grid from MVC Extensions? Google wasn't very helpful :(
I know that ASP.NET MVC supports it via display templates. But how would I do something similar using the telerik grid?
Turns out it does.
http://www.telerik.com/help/aspnet-mvc/telerik-ui-components-grid-display-and-editor-templates.html
Hope this helps someone google it a bit easier :)
I'm converting a asp.net application over to asp.net mvc that uses a lot of listboxes, specifically the RadListBox from Telerik. The ListBox that comes with mvc is very basic and I'm wondering if anyone has come across a better alternative. I'm really looking for the ability to reorder, add, and delete from the client. Thanks
It seems at the moment there is no special tool (with professional features like Telerik tools) for MVC. However I suggest you using extension methods as it was my problem already:
And also you can replace it with a [Telerik MVC dropdownlist][2]
[2]: http://demos.telerik.com/aspnet-mvc/razor/combobox which is Free!
I'm trying to get a UI using MVC. I'm currently battling with MVC3. There does’nt seem to be much documentation.
Here’s what I’m thinking. I believe I need to create stored procs for each query. I’m creating the the LINQ to SQL for the model. I’m trying to figure out how to create the cotroller. Any suggestion on how to input data to the stored proc and return results to the view? The default controller classes dont seem to do anything
Am I doing this right? Or MVC2/MVC1 the easier way to go?
I'm new to MVC on .NET. Thanks in advance.
There is plenty of documentation, if you look for it... Also, http://www.asp.net/mvc is a good place to start.
What it seems like you really need documentation for is LINQ-to-SQL, not MVC, which is here: http://msdn.microsoft.com/en-us/library/bb425822.aspx
There's also a great ScottGu tutorial here: http://weblogs.asp.net/scottgu/archive/2007/05/19/using-linq-to-sql-part-1.aspx
The whole series is available here, including a PDF download: http://scottonwriting.net/sowblog/archive/2010/07/27/links-to-scott-guthrie-s-using-linq-to-sql-tutorials.aspx
I believe I need to create stored procs for each query.
You could do this but it might be an overkill. I would recommend you watching the tutorials here. Paragraph 5. covers tutorials about using Entity Framework for data access. Try them out and if you encounter some specific issues don't hesitate to ask a question by showing what you have tried and what didn't work for you.
If you're using Linq to SQL, you don't need to use Stored Procs at all.
If you want more information on MVC generally, try doing the NerdDinner example.
I think this question was asked for several times already, but since mvc is a new technology, I hope there is something new for it.
is there something good for mvc, to do reports ?
If You need charts, use javascript. Something like HighCharts.
If you want to use rdlcs, using mvc, it's still possible to generate them and serve as pdfs available to download. Something like this I guess.
would like to use fckeditor or similar for building/editing webpages on the fly
but there are a few other old questions where there are issues
am looking for any recent experiences/alternatives ?
thanks
http://tinymce.moxiecode.com is not bad
I had a pretty easy time integrating fckeditor in my asp.net mvc app. The fact that mvc and regular webforms co-exist seamlessly made including the free fckupload utility a snap. I highly reccomend it.
Depends on the functionality you need. If it's a simple one like the one used here at StackOverflow, there's a Markdown Editor.