Hi everyone,
I'm trying to implement tree in Datagrid. It's supported by Wijmo but currently not supported by Outsystems.
I called JS to set childItemsPath and it showned into tree. But all the Input widgets were wiped out, that got me not able to edit data on grid anymore.
Before set childItemsPath :
After set childItemsPath : dropdown disappear, not able to double click and edit data. Can anyone give me the suggestion to solve this problem.
This is my OML file. Thank you very much.
Hi @Kiet Phan,
During the tests, I found an issue with Wijmo's Flexgrid but I was able to work around it.
In the Grid block Initialize event handler add the following script:
Note that, with the issue I found where the addHandler is not working you'll need to execute the operation when running operations that cause changes to the view - ordering, filtering...
Hope it helps!
Cheers,GM
Hello @Kiet Phan
For this custom scenario that is not supported, you can try to look into this example on Wijmo's Flexgrid documentation.
Just keep in mind that, if you try to use client actions from the DataGrid like the GetChangedLines it probably won't work as expected since your example follows a different data structure that is not the one that is expected within the component.
GetChangedLines
Please provide feedback since seems like a pretty cool extensibility example built on top of the OutSystems Data Grid component.
Thank for you dedication.
I tried to call js like from your provided link, but cell did not become editable.
let grid = OutSystems.GridAPI.GridManager.GetGridById("theGrid");
grid._provider.loadedRows = function (s, e) {
s.rows.forEach(function (row) {row.isReadOnly = false;
}); }
Can you give it a limpse, below is published demo.
https://osdev1.fptlowcodeservice.com/SolutionConcept/DataGrid_Inject?_ts=638560310297314908
I tested your solution and it works.
My god, you're saving me. Thank you for your dedication to the community.