Please let me know how to get the clicked item of the commandbarstripelement in item click event. Say if I have a button b in the commandbarstripelement row how to know that this particular button b is clicked in item click event.
Thanks and regards,
Noor Hussain
3 Answers, 1 is accepted
0
Stefan
Telerik team
answered on 05 Nov 2012, 03:13 PM
Hi Noor,
Thank you for writing.
To get the strip of the clicked item, you can use the FindAncestor method to find the strip in its element hierarchy:
Thanks for your response. I want to know how to determine which button is clicked in the commandbarstripelement ? I have a few buttons in the strip, i want to know which particular button is clicked in this strip in the commandbarstripelement item click event.
Thanks and Regards,
Noor
0
Stefan
Telerik team
answered on 08 Nov 2012, 02:04 PM
Hello,
The sender is the particular item clicked. If you look at the code previously provided you will see that I am casting it to CommandBarDropDownButton and I have a reference to it.