简体   繁体   中英

sharepoint 2010 item selection event on lists

I have read all the list events (and list item events) of sharepoint 2010, but it seems there isn't a way to get an event when a list item gets just selected (or double-clicked, or something like that) I want a method that lets me open a new page when someone selects an item on the list, to display more information regarding the item Is there a way to do this?

Thanks

Not sure what you are trying to do here. But by default, when you click on the title of the Sharepoint item, it opens the item details showing you all properties for that item. You can customize the display form as you need. Another options are: 1) Customize the ribbon and adda button which can display a page in a dialog box. See "Custom Actions" in Sharepoint SDK 2) Add a custom menu item the context menu of the item in the list and open a custom page showing the information you need.

You can edit the default DispForm.aspx page and add more Web Parts.

Example (it's SharePoint 2007, but the same thing can be done in SharePoint 2010)

替代文字

By default, SharePoint 2010 shows item details in a popup dialog.
If you want to edit the DispForm.aspx page, you need to go to List Settings / Advanced settings and set Launch forms in a dialog? to No ; clicking an item will now load a full page. You can edit this page ( Site Actions / Edit Page ) and add some Web Parts. These Web Parts will be visible on the full page as well as the popup dialog, so you can switch Launch forms in a dialog? back to Yes .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM