EPMFAQ Forums - Connect with the EPM Community  

Go Back   EPMFAQ Forums - Connect with the EPM Community > Microsoft Project Forums > Project 2007 Development


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-23-2010, 11:24 AM
Junior Member
 
Join Date: Jun 2010
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to add a menu button to a specific sharepoint list toolbar

When we want to add a custom button to a list toolbar we can add it by using a feature.But when we are activating the feature it will be apply to the scope secified, so all the lists present inside the scope will have a button added to it's toolbar. But if we want to add the button to a particular list then we need to specify the content type ID of the list.

To get the content type id of a list we need to follow these steps:

1. go to the list =>Settings=>List Settings=>Advance Settings=>click yes to the allow management content type
=>ok=>Now in the list setting page you will see a content type click the content type =>In the url you will see a value like

"ctype=0x010046759B602A72384BB7F4C50DEA9EE828"

This is the content type id for the list.

2. Now if you want to get it programatically then you can use this one:

oSPWeb.Lists["listname"].ContentTypes[0].Id.ToString();

Thanks,
Bijayani
Read about SharePoint Migration Services








Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored links
  #2 (permalink)  
Old 06-30-2010, 05:39 AM
Junior Member
 
Join Date: Jun 2010
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to add a menu button to a specific sharepoint list toolbar

You can rearrange and change toolbar buttons, menus, and menu commands by using the mouse or you can use the Rearrange Commands dialog box, which you can access by using the keyboard. Tasks that you can accomplish by using the keyboard are identified as (keyboard accessible).
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT -4. The time now is 01:53 PM.


Powered by: vBulletin®
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
Ad Management by RedTyger

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24