Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
65
A few questions
posted

I have a UltraListView which gets its Data from A RestApi with a Key and a Text. The Key in my Case is GUID.
After i populate the ListView with all possible Items i want to loop thru my customer Data i have and check all
items the record has in it. 

Does the UltraListView allow sorting based on Checked Items ? Ideally i would like to show the checked Items ontop
and the rest below.

Parents
No Data
Reply
  • 34810
    Offline posted

    Hello Tom,

    In order to loop through and check all of the items in the UltraListView, I would recommend looping through each of the elements in the UltraListView.Items collection. These elements should be an UltraListViewItem, which has a CheckState property that you can set. If you set all of your items’ CheckState property to CheckState.Checked, this will check all of the items.

    Regarding sorting by the checked state, the checkboxes in the UltraListView are not actually a column, and so this isn’t possible out-of-the-box, but what you may be able to do is sort the UltraListView.Items collection manually by getting a list of the items that are checked and unchecked and then reordering them. I am attaching a sample project that shows how to do this manual sorting.

    I hope this helps you. Please let me know if you have any other questions or concerns on this matter.

    UltraListViewSortByChecked.zip

Children
No Data