Solved

MVC Excel look and feel grid

Posted on 2014-02-01
1
889 Views
Last Modified: 2014-02-02
I am looking for a clean example of a grid that is configured like Excel.

The grid will show 5 columns.
Scout Group#,  Email, F Name, L Name, Phone Number.

The grid will always show 20 rows.
(1) To add a new child, just type in any blank row.
(2) To edit a row just type of the existing data.  
(3) To delete a row, just blank out the columns.  Just like a basic ASP or Windows Grid.  

  I am pretty rusty at coding but I do have the JQuery DataTable showing the desired information.  I have not found a way to read the grid data back to the controller.

Can you point me towards an article or example that will do a task like this?  Including how to read back the entire grid during postback?

I do not need advanced features, performance is not a consideration.
Thank you.
0
Comment
Question by:wilfordrocks
1 Comment
 

Accepted Solution

by:
wilfordrocks earned 0 total points
ID: 39827708
For anyone else's reference, this link is excellent.
http://haacked.com/archive/2008/10/23/model-binding-to-a-list.aspx/
The simple inputs shown in the example work perfectly well in a table.

<table>
        <thead>

        </thead>
        <tbody>
            <tr>
                <td><input type="text" name="[0].Title" value="Curious George0" /></td>
                <td><input type="text" name="[0].Author" value="H.A. Rey" /></td>
                <td><input type="text" name="[0].DatePublished" value="2/23/1973" /></td>

----
 public ActionResult UpdateInts(ICollection<Book> ints)
        {

            return View(ints);
        }
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
This video discusses moving either the default database or any database to a new volume.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now