This is a migrated thread and some comments may be shown as answers.

Creating a multi column listbox

1 Answer 780 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
Dwayne
Top achievements
Rank 1
Dwayne asked on 07 Jan 2018, 04:59 AM

WPF, Caliburn.micro, mvvm.

My ViewModel have a BindableCollection<String> that is loaded with from 1 to 1000 string values.

In my view, I have a listbox that is bound to the collection. The list box shows all the data, but in one colunm with a scroll bar.  What I want is the data in three columns and scroll bars if the data can't fit.

 

Can anyone point me in the right direction?

1 Answer, 1 is accepted

Sort by
0
Dilyan Traykov
Telerik team
answered on 10 Jan 2018, 09:42 AM
Hello Dwayne,

Based on your description, may I suggest that you use the RadGridView control instead of a RadListBox? It will allow you to split your data in different data columns and also provides the functionality of filtering, sorting and grouping this data if required. Of course, you can also disable these features if you do not wish to use them.

You can have a look at the available demos in the WPF Controls Samples and SDK Samples Browser to get a better grasp of RadGridView's capabilities. Do let me know if you find it suitable for your particular scenario.

Regards,
Dilyan Traykov
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
ListBox
Asked by
Dwayne
Top achievements
Rank 1
Answers by
Dilyan Traykov
Telerik team
Share this question
or