SP Ribbon button enable script

Hello,

when I select a document in document library, button "Edit properties" is enabled. When I deselect same document, button is disabled. Which method is called every time I select/deselect document that enables/disables button?

June 19th, 2015 3:55pm

Hi Mario,

From your description, my understanding is that are confused about how to trigger the enable/disable button in Ribbon.

Please refer to this blog about how to Enable or Disable a Button/Command in your SharePoint 2010, it will explain for you:

http://www.zimmergren.net/misc/conditionally-enable-or-disable-a-buttoncommand-in-your-sharepoint-2010-custom-ribbon-group?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+tobiaszimmergren+%28Tobias+Zimmergren%27s+thoughts+on+development%29

Best Regards,

Vincent Han

Free Windows Admin Tool Kit Click here and download it now
June 23rd, 2015 2:00am

Hello Vincent,

thanks for your answer, but that is not what I was looking for. I know that I can disable/enable button with javascript, but I need to do it when an item is selected/deselected in document library. I need to know what event is called by SharePoint in that case

June 23rd, 2015 3:42am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics