ASP.NET Dynamic Data GridView Control Replacement / Substitution - c#

Is there an easy way to replace / substitute the standard Microsoft ASP.NET GridView control in a Dynamic Data EF project? I know there are plenty of component vendors that ship GridView control with out of the box functions that go way beyond what the default ASP.NET GridView provide.
Considering this project is using the following: Standard ASP.NET C# 4.0 Dynamic-Data EF website project (VS 2010).
Specifically, here would be my requirements:
The main purpose is to swap the current ASP.NET GridView control
with a more powerful one (see specific requirements for the GridView
below).
Easy migration of the project (not too much code to re-write
to substitute the grid).
Gridview specific features:
Support for freezing header-rows and ability to pin specific columns.
Inline editing (granted, the standard GridView control supports it already).
Excel like column filtering (i.e. multiple choices based on column values).
Column re-ordering.
Out of the box group-by capabilities.
Have you ever been through such a substitution exercise?
If you have I would appreciate your feedback!
Thanks, Ben

I know there are a few who support Dynamic Data like Wijmo grid and Telerik grids but I've not tried the most recent version for compatibility. Telerik may be you best bet I would ask on their forums.

Related

How to have flexible Data Entry form of 150 columns in ASP.NET ? Perhaps DevExpress or other thirdparty Tools?

I am encountering a situation such as, I want to offer a data entry form of almost more than 100 fields of certain Database Table. It was an old database of Invoice of a particular company and cannot be altered.
So, I would have obviously a resultant Data Grid ( Probably HTML Table ) or MVC Grid containing user entered data inside. But the problem is How to Offer 120 fields in an entry form? ( Could be a partial View contained inside JQuery )? This comes an idea about inline editable Grid. Would that be better? Or DevExpress offers such controls? Would Spreadsheet be helpfull?
or any other technique would be helpfull to adopt for this?
Any body having any idea?
Regards
Usman
OK. I don't think a Grid would be a good way: that would just be too wide. I think the best way would be a series of Tabs each of which contains the data pertaining to one logical section of the invoice (e.g. a section for Forwarder, another for Client, etc etc).
As a design note, try to group items into sections small enough that the user doesn't need to scroll. Everything is a section should be visible of a normal sized screen. This makes it easier for the user.
Not sure if this is possible in your case but since you mentioned
any other technique would be helpfull
This is what I can suggest: In Visual Studio (download free copy here http://www.visualstudio.com/en-us/products/visual-studio-express-vs.aspx), in your MVC project:
Add Entity Framework package from nuget if you don't already have it (Install-Package EntityFramework from Package Manager console in VS)
Add an EF model in VS by dragging you database table to model designer
Add an Entity Framework controller with Read/Write Actions
This will create views in your project where a user can go an CRUD the table rows. And will also ensure basic constraint checking.
Check this tutorial for Entity Framework details: http://www.asp.net/mvc/tutorials/getting-started-with-ef-using-mvc/creating-an-entity-framework-data-model-for-an-asp-net-mvc-application

Nested Data grid using ASP.Net 1.1 controls

Has anyone worked on creating the Nested Data grids in ASP.Net 1.1?
Outer Grid: I would like to have the rows to be expandable. On click of "+" on each row, I would like the inner data grid to be populated with certain values based on that row.
Also export to excel feature for all of them in the same format.
I'm getting it using jQuery but looking for possible options in ASP.Net 1.1 controls itself.
If you're asking "How can I do this using just ASP.NET 1.1?" the answer is simple: you can't. Nothing remotely like that is built into ASP.NET 1.1, except perhaps in third-party controls (but good luck finding the 1.1 versions at this point.)
On the bright side, however, you won't have to deal with Microsoft Ajax features in 1.1, which means that the page model is more straightforward.
If your jQuery solution is working for you, there's not a strong case to be made for going farther. But if you want something more of a black box, that's reusable and automatically injects the jQuery code, you could subclass the DataGrid and write code to emit javascript code blocks containing your jQuery code.

Is there a ready-made data table view library with paging/filtering/sorting?

I'm building a system in MVC that has a lot of heterogeneous data to be displayed: Customers, logs, etc.
I'm finding that I'm building the same view over and over again in different forms:
Header row (with sorting links)
Filter row (drop-downs, date pickers, etc.)
Data
Paging row
Naturally the abstractor in me is shouting "Build a generic data view factory!", as well it should. However, before I disappear up my own abstracting bottom, has this work already been done elsewhere?
The only option I can currently find is MVCContrib.Grid, which doesn't seem to handle the rendering of filters (although it has allowances for extending the renderer). Is this the only option?
As one may expect a question similar to your has already been done...years ago. So here: grid controls for ASP.NET MVC? you can find a list available data grids, that has been updated in the years. I recommend that you, once and for all, give a look to all of them, so in the furure you may choose the more adequate to your needs. There is no better grid, but each of them has advantages and disadvantages.
Yes, I could recommend this jQuery plugin
http://datatables.net/
My Choice would be between
datatables.net (Already mentioned)
jqGrid (http://www.trirand.net/demoaspnetmvc.aspx)
I've foud the datatables easier to use at first, but finally I've used jqGrid as I've foud it more powerfull.
I've used both KendoUI and jqGrid successfully. jqGrid is a light-weight and less expensive solution if all you are looking for is a grid. One of the things I liked about jqGrid aside from its easy integration with knockout was it's ability to edit data in table cells as well as creating a "edit view" in which the data is edited in a form-type view with labels beside edit widgets.
That said, it sounds like you might be looking for more than a grid, and if so you should also look at using Html helpers to generate the constituant parts (header w/filter, data rows, paging, etc). This would give you ultimate flexibility over where the different parts are rendered on the page. Maybe you want to put the paging controls twice on the page at the top and bottom; maybe you want to put the filtering into a modal dialog box. The ability to simply go:
#Html.FilterControlsFor(Model.PhoneBookUsers)
someplace (or someplaces) on a page and have the helper deal with all of the details is pretty powerful juju.
Flexigrid - nice table plugin, but it is only ui table you should provide appropriative server side processing for selection and filtering data.
KendoUI any day. Theres a ASP.NET wrapper but it's quite expensive. But the jQuery lib is definitly the best out there.

Data Grid that allow edition by user in Windows Forms 2.0 using c#

I am trying to create a data grid like a table that allow to the users insert data into cells in runtime in Windows Forms with .Net 2.0.
The main idea is a data grid like a table with editable cells for the final users and save that data
Why isn't DataGridView good for this ?
It supports adding new rows, you can modify cell contents, there are even ways to implement much custom editing functionality...
Telerik has really good user controls, including editable grids. It isn't free, however.
http://www.telerik.com

Making an MSSQL Driven Calendar in .NET c#

I'm new to .NET and my first project is to create a event calendar to be populated from a events table in mSQL. I know there is a calendar object in the standard components but wondered if i'm better off populating a table view manually as i didn't know if there were lots of limitations to the standard object/component.
Thanks for your help
This can be done quite easily with the built-in calendar control that .NET provides. You're basically dealing with the DayRender event.
An excellent example can be found here: http://www.c-sharpcorner.com/UploadFile/munnamax/DatabaseDriven08212007012112AM/DatabaseDriven.aspx
You can use the standard calendar control. It will give you the ability to perform code in each cell (day) creation, so you can query your DB, find your dates, and during that paticular date's load, you can write any necessary content inside the cell.

Categories

Resources