Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何限制 a 中选定(选中)项目的数量radTreeListView?说在用户选择(检查)5 个项目后,阻止他们在 c# 中检查/选择更多项目。
radTreeListView
我需要处理哪个事件?
成就:
private void radTreeListView_SelectionChanging(object sender, Telerik.Windows.Controls.SelectionChangingEventArgs e) { if (radTreeListView.SelectedItems.Count >= 5 && e.AddedItems.Count>0) e.Cancel = true; }