Thursday, April 28, 2011

How can I use jQuery Dialog for Add/Edit screens?

Clicking a link would open a List page in a jQuery Dialog popup. From this page, I would like the ability to Add (one jQuery Dialog) a record and also edit the record (another jQuery Dialog) with validation. I'm not sure how to handle multiple popups with Ajax posts that actually call the add/edit function. I'm working with ASP.NET MVC 2.

Looking for code samples or links to relevant tutorials--haven't been able to find anything with add/edit capability.

From stackoverflow
  • I've answered this before:

    http://stackoverflow.com/questions/1843894/simple-asp-net-mvc-crud-views-opening-closing-in-javascript-ui-dialog

    David : When you say `The next step is to create your form. I use the default property name = input name` what does that mean? I think you're talking about binding it to a specific model's property, but is this form in a new view, partial view, something else entirely? Do I need to add one of these views for each table I'm working with, or are you indicating that jQuery.Forms can "scaffold" this for me?
    David : Your other answer also doesn't include the jQuery I need--you use a modal window called ColorBox. Can I use jQuery's Dialog for this?

0 comments:

Post a Comment