List View Setting Selected Item Not Working on First Insert

0
0

Hi,

I have attached a sample application outlining the behavior.

Essentially I have a ListView which I populate with some custom data (Click on the Populate Initial Values Button).

Then I wish to Insert at Index 0 either a single item or a list of items (the sample only inserts 1).

The Initial Population will insert 10 List View Items.

After this population, if you click the Insert new Value, you will see the Item get inserted correctly at the start but it is not selected.

If you hit the Insert subsequent times, you will see that the first item get selected. Its only on the first insert that it doesnt highlight.

If I dont have listDevices.FocusedItem = null then it doesnt work at all which is probably to be expected.

The List View Item is selected by listDevices.Items[0].Selected = true

The other related issue is even with a Multi Select List View, you cant seem to select multiple items programmatically. If you debug through you can see that they added to the SelectedItems Collection, you can see that they are marked as selected, but visually they do not display as being selected.

Thanks,

Daniel.

Attachment
  • You must to post comments
0
0

Daniel

I confirm that its a issue present even in current version 2.2.52

I report this to the development team.

It is very probable that the fix will be available in next build

thanks again form your report

Regards and happy coding

  • Daniel Kelly
    Hi Paul, Thanks for the update. Kind Regards, Daniel.
  • Daniel Kelly
    Hi, just wondering if there has been any update on this issue? I cant see it listed in the current issues yet (unless its tagged under something different). Thanks, Daniel.
  • You must to post comments
0
0

by the way
What version of Wisej are you using?
regards

  • You must to post comments
0
0

Hi Daniel

Thanks a lot for  your detail explanation and the sample code 🙂

We will check this and comment you in short

Regards

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.