A customer asks me if it’s possible to open the edit form directly if you click on the title of an item in the SharePoint listview. As you all know with SharePoint you can do everything (almost) 🙂
The Title normally has a linkitem menu and opens usually the display form. So i went to the view aspx page, click on customize entire view with xsl. Select the part where the title is rendered and put the following code snippet (the a href tag) around the xsl-value tag.
[sourcecode language=”csharp”]
[/sourcecode]
I found two functions: The ShowPopupDialog function, which only needs an url and the GetGotoLinkUrl function. I put the link to the editform in and tried it. And the great thing is it worked! Really cool, the link opens the edit form and you also have the possibility to open the listitem menu.
If you like to read more background:
Leave a Reply