Can't select a listview item with Usercontrol with WiseJ 2.5.35 with a short-tap

1
0

Running 2.5.35. I have a listview that has a usercontrol on the right side, but I cannot select the listview item with a short-tap. It is very inconsistent, only selecting about 10%  of the time.   When I do a long tap, however, the ListViewItem is selected.

 

Is this a bug, or is there a property that I have misselected?  Does having a UserControl in the ListViewItem change the tap behavior?

Tested on a Samsung Galaxy S20.

 

Some code for context:

 

public void DeptToItems2()
{
lvDepartments.BeginUpdate(); // Start Updating Listview
lvDepartments.Items.Clear(); // Clear listview items
int i;
var loopTo = dl.departments.Count – 1;
for (i = 0; i <= loopTo; i++) // Loop through departmentList count
{
var d = dl.departments[i];
var li = new ListViewItem();
li.Tag = d.did;
var ucm = new ucDepartmentMobileInterface();
ucm.d = d;
ucm.frmMCCPD = this;
ucm.Dock = DockStyle.Fill;
ucm.lblDeptName.Text = d.name;
ucm.Tag = d.did;
li.RowHeight = 50;
li.Control = ucm;
lvDepartments.Items.Add(li);
}

lvDepartments.EndUpdate();
}

  • You must to post comments
0
0

Hi Andrew,

do you have a URL where we can try that? Or could you wrap up the code in a test case?
You can either post here or send it to supportATwisej.com if it contains private information.

Did you have a chance to test with an IOS device?

Best regards
Frank

  • Andrew Niese
    I have just emailed you URL and instructions to reproduce. Thank you. Haven’t tried on iOS yet.
  • Andrew Niese
    The issue is worse on iOS — even long tap doesn’t work.
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.