Basically my questiong is regarding the ribbon.
So I want to have the following behaviour, when a person clicks on the button, the contextual ribbon tab should be opened.
Any idea how to do that?
I have the following code:
SPRibbon ribbon = SPRibbon.GetCurrent(this.Page); string contextualTabId = ribbonItems[listType]; ribbon.MakeTabAvailable(contextualTabId); ribbon.MakeContextualGroupInitiallyVisible(contextualTabId, string.Empty);
But the problem is it disappeares after a second.
Another solution might be to focus the web part but how to do it from c#? I tried with js but was not a good solution. And it didn't work very well either.
So any idea?