Hi,
I have added one button in QAT(Quick Access Toolbar). I call it as Open Recent File. on click of this button I want to open File Menu tab which will show the Recent Tool selected which includes list in backstage View. I am using C# .NET and infragistics 2010.3
I have tried a lot but not getting the desired output.
I am new to infragistics.Any help will be appreciated.
Thanks in advance. :)
Hello.
The ToolbarsManager has a ToolClick event which is where you can respond to tool clicks. You simply check e.Tool.Key to find out which tool was clicked. Here is an example in the help of how to use this event:
http://help.infragistics.com/NetAdvantage/WinForms/2010.3/CLR2.0/?page=Infragistics2.Win.UltraWinToolbars.v10.3~Infragistics.Win.UltraWinToolbars.UltraToolbarsManager~ToolClick_EV.html
You mentioned that you want to open a file menu tab when you click a specific button. Is this file menu tab a menu item or is it another ribbon tab? Each ribbon hab has a BringToView() method which you can call to bring that tab into view.
Each Ribbon tab can have multiple RibbonGroups and each RibbonGroup also has a BringToView()method. I am not entirely clear on what you want to do when that button is clicked, but handling the ToolClick event is the first thing to do. Could you provide some more details on what exactly you are looking to do?
Thanks for reply.
I have already triggered the click event but after that, I want to show the Most Recently Used List (MRU list) of documents from context menu somewhat similar to MS Office 2010, i.e. when we click on the open recent button from quick access toolbar, it shows the file menu with the list of recently opened documents in the backstage view.
I want to implement similar functionality in my application.
On ToolClick event I have used switch case to identify which button is clicked and if clicked button is "Open Recent File" then display the recent list to the user so that user can navigate to other document.
This is happening through context menu but not through QAT.
Please suggest.
Thanks for your help.
Regards
Thanks for your reply.
Yes now you have got it correctly. I have tried with the following code but still not working.
CurrentGroup = e.oSelectedGroup
Select Case CurrentGroup
Case MDIMenuRecentList
If True Then
'User clicked an item on the PRJ List tool.
'Get the ListToolItem which was clicked
'Open the document based on the ListToolItem
Exit Select
End If
Case MDIRecentButton
UltraToolbarsManager1.Tools("RecentPopupTool").SharedProps.Visible = True
Case Else
End Select
In above sample case MDIMenuRecentList will execute when context menu is clicked and it is working as expected but another case MDIRecentButton should execute when button tool from QAT is clicked. I am trying to set visibility of the tool but its not working. Is there any way to get the desired output?
please suggest.
Thanks again.
Regards,
Have you explored this help article?
http://help.infragistics.com/NetAdvantage/WinForms/2010.3/CLR2.0/?page=WinToolbarsManager_Office_2010_Style_Application_Menu.html
I'm not if I understand you fully. It sounds like you already have code to display a recently used list of files that displays when you handle the tool click event. From your description, it sounds as if you can get this list to display when you click a tool in the context menu, but you can't get this to work if you click the same tool from the QAT. Please correct me if i am wrong.