WebDataGrid in ASP.NET MVC : Hello World

Click here to play this video
Posted by craigshoemaker
06-08-2009


Downloads: 420
File size: 19.7MB
Views: 2,941
Filed under: ,

Learn the basics to running the WebDataGrid in an ASP.NET MVC application. See how you can add behaviors to the grid that do not rely on ViewState or post backs.

Update 2009-06-09:

The video suggests using a server script block and to use the Page_Load method. A more concise alternative would be to simply use the following code:

<%
    wdg.DataSource = this.Model.People;
    wdg.DataBind();
%>

<ig:WebDataGrid ID="wdg"
    runat="server" Width="50%"
    EnableViewState="false">
</ig:WebDataGrid>

Comments

pbansal wrote re: WebDataGrid in ASP.NET MVC : Hello World
on 12-22-2009 12:52 AM

Thanks.. But it looks that this a very basic startup example.. What I am looking to have a robust grid feature in asp.net mvc with features like

1. pagination using a nice may be customizable navigation bar contolling number of records to be displayed, page count and moving from one page to another

2. Searching records from a specific column for date, number and string values. sometimes search may be on multiple columns for the same value at one go

3. Sorting on columns probably simultaneous multiple column sorting

4. Fixed Header with both side scroll vertical as well as horizontal

5. multiple rows in header grouping two or more columns for the header point of view

Specially the last TWO had been a big issue in my HTML Table being used as a grid in ASP.NET applications..

Please advise if you have any such exhaustive example ready with you for my reference somewhere..

Thanks a lot..

Pawan

Add a Comment


Sign in to post a comment.