This is a migrated thread and some comments may be shown as answers.
sorting & filter buttons?
1 Answer 1 View
This is a migrated thread and some comments may be shown as answers.
Maximiliano
Top achievements
Rank 1
Maximiliano asked on 06 Apr 2021, 11:18 AM

    Hi,

 

i need to add some sorting and filtering methods, we were testing to create a grid and put in on the back of the listview so we can use the headers as sort&filter buttons (attached an image to show how we use it).

 

 

the thing is, that we are having like a ton of information, and the grid/listview just hangs when we set the property of the datasource of both lists.

 

how would be the best way to get the filtering and sorting for a listbox?

is there a way to replicate the buttons functionality of the grid on plain buttons? maybe a toolbar?

 

 

thanks for any advice...

 

 

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 09 Apr 2021, 09:56 AM

Hello Maximiliano,

There is no built-in UI for sorting and filtering in RadListBox. Also, the functionality in RadGridView's buttons is implemented in the context of RadGridView, so this cannot be used outside of the control.  

For your requirement I can suggest you two approaches.

  • The first one is to directly use RadGridView or RadTreeListView instead of a RadListBox. This way you will get the desired functionality out of the box.
  • The second approach is to implement the filtering and sorting UI using some WPF elements placed on top of the RadListBox control. Then you can create logic in the code-behind that filters and sorts the data. One way to do this is to use an ICollectionView implementation which provides you with filtering and sorting.

I hope this information helps.

Regards,
Martin Ivanov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Asked by
Maximiliano
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question
or