In the application I have a couple of dynamically created dockable control panes which are docked as tabgroup.
I need to raise few events on the click of each tab, that is on selected each pane in the tabbedgroup.
I would like to seek help in this
Thanks & Regards
Jeni
Thanks Mitko. It worked perfect.
Hello Jeni,
I am just checking about the progress of this issue. Let me know If you need my further assistance on this issue.
Thank you for using Infragistics Components.
Thank you for the clarification. What you could do in your case is to use the MouseEnter and MouseLeave events of the DockManager to track whether the cursor is over the tab header or not. One way to do that is set a Boolean flag to true in the MouseEnterEvent if the element is of type TabItemUIElement and to set it to false in the MouseLeaveEvent. After that you can use the PaneActivate and check if the value of the flag is true. This way you will know if the pane was activated by clicking the tab header.
I have attached a sample which demonstrates this approach.
Don’t hesitate to ask any additional questions you may have.
I need to raise the events on the tab header click. In each dockareapane, I have an ultrapanel with a couple of databound controls.
Looking forward to hear from you.
Regards
Can you please clarify whether you want to raise events if the user clicks on a tab header or the tab itself? If you want to fire events if the user clicks on the tab itself you could use the click events of the control which is docked in the tab group as the UltraDockManager itself has no MouseClick (MouseClick, MouseDown, etc.) events.
I am waiting for your reply.