Hi
This code:
Hello,
I have been looking into your question and after an investigation, I could say that currently, we are investigating the options for automatic migration, however, at this point, the only option is to apply the changes manually.
Let me know if I may be of any further assistance.
Sincerely,
Teodosia Hristodorova
Associate Software Developer
Hi Teodosia
Okay. That seems to be a more logical answer than Montreal App Developers - Underlabs!When I was referring to my code, I was referring to how to refactor all my code where I have this.grid1.selectedRows () .... and nothing specific about the position [0] of the grid. So I thank you, but your example is of no use to me.It is a large application and it is not the only application, in all applications this sentence appears many times, since it is very useful.You should have coded the cli or wherever, a version converter, that would be the right thing to do. As Angular did in version 10 or without going further as Infragistics did with the asp.net versionsSo, I ask again:Is there a way to refactor ALL of my code in such a way that I don't have to navigate through all the .ts files of all my applications and change it manually?
Paul
I have been looking into your question and after an investigation, I determined that from version 10.1.0 the selectedRows method is an @Input property. Setting it to an array of Row IDs will update the grid's selection state, any previous selection will be cleared. Setting it to an empty array will clear the selection entirely. This is mentioned as Breaking Change in the version Release Notes it our GitHub repository here.
Additionally, I created a small sample in order to demonstrate how you could modify your project which could be found here. Please test it on your side and let me know if I may be of any further assistance.
Sincerely,Teodosia HristodorovaAssociate Software Developer
This works, it gives you the length of the of the selected rows. Which SDK version are you using?
this.gridRecursosUtilizados.selectedRows().length