I have created a custom ribbon button for my list. For some pages I wanted to hide the ribbon button and for some pages I wanted to disabled. I found how to make disabled, I wrote following code to make disabled.
My problem is how to hide ribbon button using
CommandUIHandler. Anybody has an idea?