I hope you''ll can help me.
I have a list of Users in a array.
In my menu, I have a ListBarItem.
I want to put all my users in the ListBarItem by code. Could you help me ? Have you an example ?
When I''ll have my users in my menu. How can I know what is the user that click on ?
Please, excuse my poor english :-)
ADAdministrator Syncfusion Team February 9, 2005 01:54 PM
From the Class documentation for ListBarItem:
"When shown this bar item will be replaced by a numbered list of BarItems based on the supplied ChildCaptions list and when one of the items gets clicked by the user a Click event is thrown by this instance with the ListBarItemClickedEventArgs args."
Basically, you use ListBarItem.ChildCaptions.Add to add more items. And when the ListBarItem is clicked you can cast the EventArgs from the Click event into a ListBarItemClickedEventArgs and then use the SelectedIndex property of that to determine which choice was selected.
I have created a sample to demonstrate this. Please let me know if you have any further questions.
GCGérald CosteFebruary 23, 2005 03:59 AM
Your example is exactly what I was looking for.
Thanks a lot