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
435
Item Activated event is getting fired twice
posted

Hi,

I have 2 ultralistviews and am populating first listview with items when the view comes up first time. Later on selection of any item , am trying to populate second listview with set of items.

The strange thing i noticed is the item activated event of second listview gets fired twice. This happens when the listview doesnot have a focus and am trying to select any middle item... so the first item gets activated first and later it activates the selected or clicked one. I havenot  used any other events w.r.t listview.

So how can I stop firing the item activate event twice when am selecting on item. Appreciate a response in this regard. Thanks!!

Parents
No Data
Reply
  • 5520
    Suggested Answer
    posted

    are you giving the event handler programatically using +=??

    if so you might be giving it twice.

    so you have to use -= before +=.

    -= wont throw any exception if the event was no added before

Children
No Data