Click here to Skip to main content
       

Sharepoint

 
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
QuestionAdd , Edit, and display list in one pagemembervasudeo113 May '12 - 7:39 
i have a requement that when ever i click on the edit in the list row it must not redirect to edit form, it must be in the same page
 
we must use only sharepoint 2010 and the sharepoint designer
 
need no code solution Blush | :O Smile | :)
AnswerRe: Add , Edit, and display list in one pagemvpMark Nischalke13 May '12 - 10:24 
You will not be able to accomplish this with no code. It will require modification of the ecb menu and a customized listview control to allow for in place editing.
 
There may be some third party controls that have this bulit in but I'm not aware of any.
 
In 2010 though the edit page is displayed as a modal dialog so you are not navigating away from the current page. Why is this not acceptable?

Failure is not an option; it's the default selection.

AnswerRe: Add , Edit, and display list in one pagememberChristopher Stratmann18 May '12 - 4:35 
This is possible to do a "no code" solution, but it would probably be a lot of work. You could use SharePoints web services and JavaScript/JQuery to accomplish this. I would suggest using the content query web part to get the list to show on the page. Then after that you JQuery to allow the user to select rows they wish to modify and autopopulate a form (built in HTML or JQuery) with a submit button. When the user presses the submit button call the web service to update or add an item. You could also use JQuery to insert a delete button next to the items in the content query web part so when the user presses a delete button it will call a web service to remove the item from the list. If you do use the content query web part another approach would be to manipulate the item.xsl to automatically render a delete button for you. You could also manipulate other xsl files to create the form and submit buttons. You do have some options to choose from but I do think it is possible. Check this link out.
Chris

GeneralRe: Add , Edit, and display list in one pagemvpMark Nischalke18 May '12 - 5:35 
You do not need to use WebServices with 2010. The Client Object Model more robust and usable. SharePoint 2010 Client Object Model, Part 1[^]

Failure is not an option; it's the default selection.

GeneralRe: Add , Edit, and display list in one pagememberChristopher Stratmann21 May '12 - 2:33 
Good point.
Chris

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   


Advertise | Privacy | Mobile
Web02 | 2.6.130516.1 | Last Updated 22 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid