5822.TestXamDataGrid.zip
Hi,
This is a bit of a long one, so please bare with me.
Due to having a complex and dynamic data structure to display and edit (tree of data with dynamic number of rows and columns), I had to create the several Field Layouts and Columns in the code behind.
I'm using multiple Field Layouts because even though the data and columns are the same, I want the columns in the nested rows to align with the parent, but maintain the identation on the left. In order to achieve that I created a different Field Layout per row level, with differect first column widths to compensate for the margin indentation.
I also need to cell navigation using the arrow keys.
All this works when using the mouse to select and edit a cell.
When I navigate to a cell using the arrow keys, the editor shows "behind" the cell value presenter. This is especially bad because when I style the CVP to have a background colour, it completely hides the editor and we don't know what or if we are editing anything.
Please find attached a sample project that will help ilustrate my problem.
To see the issu just run the project, select the first cell, press the down arrow key so that the cell below is editable and type a value.
The editor will show "behind" the current value of the cell.
Thank you for your help.
Hi Andrew,
We are going to look into upgrading to the latest version.
Thanks for your help.
Ricardo
Hello Ricardo,
I have been experimenting with the sample project you have provided to see if there is a simple workaround, potentially by handling Key presses and putting a cell into edit mode programmatically rather than letting the DataPresenterCommands do it. Unfortunately, this still had the same effect.
I believe that since the mouse-click edit mode seems to work, this may be the route that you need to go to work around this behavior. That is, I believe you will need to simulate a mouse-click on the grid, which will very likely not be a simple task. My overall recommendation in this case stands to upgrade to a later version where this behavior does not exist.
Please let me know if you have any other questions or concerns on this matter.
Thanks for your quick reply.
Is there any possible workaround (however ugly like simulating a mouse click or something) that I can do to work around this issue?
I'm not sure if upgrading the version is possible in the short term.
Thanks,
I have been investigating into this behavior with the sample project that you have provided, and this issue that you are seeing appears to have been a bug in version 12.2 in the way that at times, the CellValuePresenter would not “get out of the way” of the editor when a cell would go into edit mode.
The best thing that I can recommend to prevent this issue is to upgrade to a later version, as at the time of writing this, version 12.2 is not receiving active development, and actually is not supported. I have tested your sample project against the earliest version that is supported at the moment, which is the final service release for version 15.2, and I cannot seem to reproduce the behavior you are reporting in that version. As such, I would recommend upgrading to that version or later, as it appears that this bug was caught and fixed after the lifecycle of 12.2.