Unplanned
Last Updated: 16 Nov 2018 14:49 by ADMIN
Gagik
Created on: 14 Jul 2018 09:43
Category: ListView
Type: Bug Report
1
radlistview xamarin forms uwp with entry controls has issue
I've attached a sample solution to demonstrate the issue. Try to run it. When you try to type into the entry inside of the list view there are several strange aspects

1. It's not possible to put spaces
2. When you type quickly the cursor will start jumping arbitrarily. It might even jump to front, or delete the whole text. 

This behavior happens only on UWP. 
5 comments
ADMIN
Nasko
Posted on: 16 Nov 2018 14:48
Hi Gadik and Ewan,

Indeed the first issue has been resolved as Ewan mentioned and the fix is available with version 2018.3.1109.1. 

The second issue is connected with the PropertyChanged that is invoked from within the ViewModel everytime the Text of the Entry (that is bound to a property in the ViewModel) changes. 

When PropertyChanged is invoked the ListView internally listens for it and schedules a recycling of its items - the BindingContext of the Entry gets cleared. After the recycling finishes the items are prepared again - their BindingContext is set as well. 
Basically with every characted press the BindingContext of each Entry is changed to null after that back again to the ViewMode and the cursor is moved after the last character.

It is not recommended to call PropertyChanged after each character press when the Entry is placed in the ListView. Our recommendation is to call it only after the Entry loses focus. Thus the control will behave as expected and the cursor should be placed in the desired position.

I have modified the sample project in order to demonstrate how the mentioned above approach could be achieved - please, notice how the PropertyChanged is called only when the control is unfocused.

Hope the provided information will be helpful for you.
Attached Files:
Ewan
Posted on: 13 Nov 2018 10:04
The first issue (space bar) has been fixed in 2018.3.1109.1. The second issue is still active; I hope this will be fixed soon.
ADMIN
Yana
Posted on: 16 Aug 2018 10:03
Hi Gagik,

I am afraid we couldn't specify a timeframe for providing a fix at this point. Since you're following the item, you will receive an email notification as soon as there is any progress on it.

Regards,
Yana
Gagik
Posted on: 26 Jul 2018 14:56
Hello, Thanks for the update. Any ideas when this might be fixed?
ADMIN
Didi
Posted on: 25 Jul 2018 10:36
Hi Gagik,

Thank you for reporting this to us. I managed to reproduce the issue on UWP and I changed the item status on approved. Currently, there is no suitable workaround I could suggest.

Sorry for any inconvenience caused.

Regards,
Didi