ListViewGroup replacement

0
1

Hi! I’m migrating a WebGUI application to Wisej. Are there any replacements for ListViewGroups? It’s all over the application and I couldn’t find another way of implementing them.

listView.Groups.Add(new ListViewGroup());

listViewItem.Group = listViewName.Groups[variable];

  • You must to post comments
0
0

ListView itself is a control in Wisej.

Documentation links: https://docs.wisej.com/docs/controls/lists/listview https://docs.wisej.com/api/wisej.web/lists-and-grids/listview

You can create and add items to a ListView like so:

ListViewItem listViewItem1 = new ListViewItem("item1");
ListViewItem listViewItem2 = new ListViewItem("item2");
ListViewItem listViewItem3 = new ListViewItem("item3");

ListView listView1 = new ListView();
listView1.Items.AddRange(new ListViewItem[] {
listViewItem1,
listViewItem2,
listViewItem3});

this.Controls.Add(listView1);

As a replacement for ListViewGroup specifically, look into using ListViewSubItem and ListViewSubItemCollection

The demobrowser has an example of a ListView using subitems: https://wisej-demobrowser.azurewebsites.net/#Grids/ListView/Features
Source code for the example: https://github.com/iceteagroup/wisej-demobrowser/blob/main/Demos/Grids/Wisej.DemoBrowser.ListView/Features.cs

  • You must to post comments
0
0

Hi Ezequiel,

there are no plans for a ListViewGroup in Wisej.NET.

If you are interested in a custom evaluation of alternatives you might want to reach out to SalesATwisej.com

Best regards
Frank

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.