We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Best way to do this ?

Hey,
Quick question, I have two RibbonGallery Controls and I set both there Itemssource to the same arraylist of ribbonGalleryItems,

so
Private RibbonItems as ArrayList

Dim I as RibbonGalleryItem
Dim gallery1 as RibbonGallery
Dim gallery2 as RibbonGallery

RibbonItems.Add(I)

gallery1.itemssource = RibbonItems
gallery2.itemssource = RibbonItems

what is the best way to handle the Click event of I so that it goes to different events for each gallery ?
Cheers
Tom


2 Replies

TM Tom Mann December 13, 2009 03:14 PM UTC

I've found a work around for the minute which works, which is by rather than handling the click event of the GalleryItem is to handle the SelectionChanged event of the Gallery.


PR Padmaja Rajaram Syncfusion Team December 14, 2009 04:08 PM UTC

Hi Tom,

You can use EventSetters for achieving your requirement.

Here the code snippet for handling click event of RibbonGalleryItem for each RibbonGallery.








Hope this helps.

Please let me know if you have any other concerns.

Regards,
Padmaja

Loader.
Live Chat Icon For mobile
Up arrow icon