Hello,
I'm using the DataGrid with OnCellGrid when I click in the first column (Only in some records) and redirect to another page I have the bellow error.
If I click in the second column for example I don't have issues and if I click in the first one but I don't redirect to another page I also don't have issues.
Any idea or workaround for this problem?
Thanks, Paulo Torres
Hi @Paulo Torres
Sorry about the delay but I'm OOO until next week.After a quick look, this isn't something I can reproduce 100% of the time or quickly understand the root cause so, we created a task to investigate and, if needed, fix a potential issue.
Update: this is happening since the column you're clicking is editable, ie, there's a conflict between you clicking the cell to edit it and running the cell click event at the same time (the block's lifecycle will be broken most of the time), which in this case doesn't make sense since you're redirecting to another screen and you'll never be able to edit the cell content.So, you should make the column not editable and the error will not occur or, if you want to redirect to another screen maybe an Action Column should be the right pattern for you to use.
Cheers,GM
Hello @Paulo Torres
To make this more collaborative and to make sure the community is looking into the same use case that you're reporting, please share a sample oml where that can be reproduced (include a GIF/video if it's easier to showcase the steps to reproduce).
Any update on this reported issue you can share?
Hello @Gonçalo Martins,
I have prepared a oml to share, if you click here you'll see the problem reported.
You can test here: Link
I also attached the oml.
Thanks in advance, Paulo Torres
The oml you shared has multiple missing dependencies and no data.Can you please share a "standalone" version of it?Thank you.
Hi @Gonçalo Martins,
Check now :)
Do you have any news for me about this topic? :)
Thanks
Thanks a lot @Gonçalo Martins :)
Hi @Paulo Torres ,
i was trying to debug it by making a clone of OutsystemsDataGrid, and using that one in your example application, and the problem went away. Even after removing the clone and using the original again, the error did not come back.
It is completely unexplained to me, but maybe you can get lucky by doing the same.
Dorine
Just to be complete, installing your oml initially, I saw the same error.
Hi @Dorine Boudry,
You mean, what you did is just clone OutsystemsDataGrid and change the references and the error gone?
It sounds funny :D
I can try it anyway just in case :)
yes, but then change it back to the real OutsystemsDataGrid, and error doesn't come back