Hello,
I have a xamDataGrid that have cell focus issue after data source refresh. It looks like the cell have focus but in fact it is an illusion.
To demonstrate the issue I have attached a Sample Project
Once you start the project:
1. Modify any cell and that will enable the save button.
2. Click save and the cursor will jump randomly to a different cell.
3. Try to modify the cell that have the focus
You would notice that the save button would not enable until you leave the cell and double click it and then modify it again.
If I default the ActiveDataItem property after the save to the CarCollection index Zero, no focus issue if the data grid have more that one record.
However, if it have 1 record, I would get the weird focus issue behavior.
Hitting the Escape key should exit out of the cell but not in this case.
Q : How can I get rid of this illusion ?
Please use Infragistics dlls version 16.1.
Thank you
Hello ,
Thank you for the update.
In my previous response I was trying to say that I am not sure about your logic that on save button why did you clear the collection and rebind it.
Which kind of not related to the issue because with the same sample I am not able to reproduce the issue using Version 17.2. So the best option for you would be to upgrade to V17.2 in order to get the fix.
Please let me know if you need further assistance.
I'm a bit confused with the answer. Are you able to demo what you are suggesting ?
I discussed the behavior with the developer and find the information that :
Really the best option for them is to update their assembly version...but if they can't do that right now than they would need to cache the cell that was last in edit mode and put it back in edit mode.
The problem is, the cells are going to be all new instances because he was clearing the data source collection and repopulating it with new data items.
So, maybe they should cache the Field and the Record index that is in edit mode when they go to click the "Save" button. That way, they can know where the new cell will exist.
...or just update the existing data items rather than creating all new.
Please note about the work around developer provided is something you would need to try because we are not sure about the concept you have in your code why you are clearing the data and repopulation the data and also the possible bug has been fixed with V17.2.
Or you could also look into the source code of 17.2 for the reference.
also note that this case has been submitted with Standard Support which has a response time of within three business days.
Is anyone still looking into this issue ? I have requested an update many times but no acknowledgment.
An update is greatly appreciated.