apache / royale-asjs

Apache Royale ASJS
Apache License 2.0
372 stars 116 forks source link

ADG Column Click throw's exception #933

Open pashminakazi opened 4 years ago

pashminakazi commented 4 years ago

Example : https://paste.apache.org/n11g2

In Royale When i doubleClick on ADG Column Vehicle No i will throw exception image image image image

In Flex when i doubleClick on Vehicle No it will allow me to enter some data in ADG Column Vehicle No

pashminakazi commented 4 years ago

In Flex when we Double Click on Vehicle No Vehicle_creationCompleteHandler called and data property is VO image image

In Royale we Double Click on Vehicle No Vehicle_creationCompleteHandler called and data property is undefined image

aharui commented 3 years ago

In the first problem where newData is null, are you sure the renderer/editor is the same as Flex? In Royale it appears to be wrapped in a HBox so the editorDataField wouldn't apply. The vValue getter would need to be on the HBox, not the internal component.

In the second problem, it is true the data property will not be set in Royale. Try using callLater to run the handler later or try a dataChange instead of creationComplete.