views:

235

answers:

2

Hi

I'm trying to create a web part that will enable users to edit items without ever leaving the AllItems.aspx page. The web part should have a similar functionality like the EditForm.aspx page.

I've created a simple web part with a ConnectionConsumer("Row") that successfully shows the selected ListItem but I'm trying to figure out how to programmatically create a form depending on the list with a save/update functionality.

I would appreciate a simple solution or a nudge in the right direction.

Thanks

+2  A: 

What you are trying to do is not possible out of the box but it should be possible to use the SPGridView and the ListFieldIterator decorated with AJAX to get the things working as you wanted.

You can refer to the below items and build a control that does what you want.

  1. Using SPGridView in WebParts
  2. Articles on ListFieldIterator
  3. ListFieldIterator

Once you build it you can try sharing the code as this is a pretty common thing everyone wants and I didn't find a good implementation of this kind so far.

Kusek
Thanks, the ListFieldIterator seems like the right tool for the job.
Matej
A: 

This definitely sounds like a nice feature. I would love it if you could put the solution on codeplex, you're choice of course.

I've had a sneak peak on SharePoint 2010 and AJAX enabled editing is found on lots of places so I wouldn't be surprised if some kind of feature like the one you are working on will be included.

Good luck!

Riddler777