how can i limit the number of selected (checked) items in a radTreeListView. Say after a user has selected (checked) 5 items, a stop them from checking/selecting more items in c#.
Which event to i need to handle?
2 Answers, 1 is accepted
0
Maya
Telerik team
answered on 04 Nov 2013, 07:58 AM
Hello Biya,
You can handle SelectionChanging event and cancel it when required. The number of the selected items can be found through SelectedItems collection of the tree list view.
Regards,
Maya
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely. Sign up for Free application insights >>
BUT it stiill doesn't stop a user from selected more than only 2 items. With that code i can still selected any number of items. Why is e.Cancel = true; not working even when the value of radTreeListView.SelectedItems.Count() is greater than 2