Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
100
Paloma
posted

¡Hello!, Thank you in advance. I have a dude with my ultraexplorerbar. I`m validating a change of item in ultraexplorerbar. I ask if or not to save. When I want to save my property ActiveItem.Key of UltraExplorerBar change. It`s possible to preserve my Key before the event ItemClick?

  • 71886
    Offline posted

    Hello,

    Please take a look at the following code sample:

     

            private void ultraExplorerBar1_ItemClick(object sender, Infragistics.Win.UltraWinExplorerBar.ItemEventArgs e)
            {
                //The following will give you the new item's key
                //e.Item.Key
            }
    
            private void ultraExplorerBar1_ActiveItemChanging(object sender, Infragistics.Win.UltraWinExplorerBar.CancelableItemEventArgs e)
            {
                //The following will give you the previous item's key
                //if(ultraExplorerBar1.ActiveItem != null)
                //ultraExplorerBar1.ActiveItem.Key
            }
    

     

    Please feel free to let me know if I misunderstood you or if you have any other questions.