You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@royale.apache.org by GitBox <gi...@apache.org> on 2020/12/30 15:02:40 UTC

[GitHub] [royale-asjs] pashminakazi opened a new issue #1022: Copy row as text option not shown when right click on AdvancedDataGrid row

pashminakazi opened a new issue #1022:
URL: https://github.com/apache/royale-asjs/issues/1022


   In Royale, there's no option to copy text, select text, and copy row as text.
   ![image](https://user-images.githubusercontent.com/42200979/103359456-ca75ab80-4ad9-11eb-8fc6-4a459c0185a0.png)
   
   In Flex:
   When right-clicking on any cell there's an option to copy row as text
   ![image](https://user-images.githubusercontent.com/42200979/103359076-01978d00-4ad9-11eb-9980-41a20a936da0.png)
   Paste copied row
   **Attribute	Value
   RICA	Y**
   
   or
   if right-click on any text copy options also shows
   ![image](https://user-images.githubusercontent.com/42200979/103359071-fcd2d900-4ad8-11eb-81c9-644eccb9aa4a.png)
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [royale-asjs] estanglerbm commented on issue #1022: Copy row as text option not shown when right click on AdvancedDataGrid row

Posted by GitBox <gi...@apache.org>.
estanglerbm commented on issue #1022:
URL: https://github.com/apache/royale-asjs/issues/1022#issuecomment-754582982


   @pashminakazi  The ContextMenu class.
   
   In Flex MX ADG, there was actually a contextMenu property that you could set to a ContextMenu object:
   
   https://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/InteractiveObject.html#contextMenu
   
   But I don't see any ContextMenu class (and associated classes and events) implemented in Royale, yet.  (I mean there is no ContextMenu class at all, not just about grids.)
   
   So it may be easier to set up a button and, in the click event, use the current grid selection to copy to clipboard.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [royale-asjs] estanglerbm commented on issue #1022: Copy row as text option not shown when right click on AdvancedDataGrid row

Posted by GitBox <gi...@apache.org>.
estanglerbm commented on issue #1022:
URL: https://github.com/apache/royale-asjs/issues/1022#issuecomment-754562660


   @pashminakazi Oh, I didn't realize that you were waiting on me for something.
   
   I checked in MX System.setClipboard() for the actual copy-text-to-OS-clipboard part, in PR #1038.
   
   I'll post some example code for getting info out of an MX AdvancedDataGrid / Spark DataGrid.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [royale-asjs] pashminakazi commented on issue #1022: Copy row as text option not shown when right click on AdvancedDataGrid row

Posted by GitBox <gi...@apache.org>.
pashminakazi commented on issue #1022:
URL: https://github.com/apache/royale-asjs/issues/1022#issuecomment-753957822


   @estanglerbm when will you check-in your commits for "Copy Row", It's urgent please help


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [royale-asjs] estanglerbm commented on issue #1022: Copy row as text option not shown when right click on AdvancedDataGrid row

Posted by GitBox <gi...@apache.org>.
estanglerbm commented on issue #1022:
URL: https://github.com/apache/royale-asjs/issues/1022#issuecomment-754576067


   Here is some sample code that copies grid data to the clipboard in CSV format (copyValues), and some sample code that copies grid data to a file in CSV format (saveValues) for use in Excel:
   
   [clipboard-example.as.txt](https://github.com/apache/royale-asjs/files/5769808/clipboard-example.as.txt)
   
   Note that I've changed the code up from the original, and I have not compiled it, so YMMV.
   
   Also, this was originally Flex code that worked (for Spark DataGrid), but on the Royale side (after some changes to handle XML and switch back to MX AdvancedDataGrid), I'm not 100% sure if the logic for "selected items" works (for doing a subset of rows).
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [royale-asjs] estanglerbm commented on issue #1022: Copy row as text option not shown when right click on AdvancedDataGrid row

Posted by GitBox <gi...@apache.org>.
estanglerbm commented on issue #1022:
URL: https://github.com/apache/royale-asjs/issues/1022#issuecomment-752961940


   Looks like custom right-click actions?
   
   Code to format the data from the grid cells is fairly straight-forward.
   
   I have an implementation of System.setClipboard() that I could clean up and check in, for the "Copy Row" action, if that would help.
   
   The "Export to Excel" action would be via FileReference.save().
   
   For the right-click action menu, I guess ContextMenu needs to be implemented for JS?
   
   Might be easier to implement via buttons, right now.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [royale-asjs] pashminakazi commented on issue #1022: Copy row as text option not shown when right click on AdvancedDataGrid row

Posted by GitBox <gi...@apache.org>.
pashminakazi commented on issue #1022:
URL: https://github.com/apache/royale-asjs/issues/1022#issuecomment-754574785


   @estanglerbm Thank u so much
   I want to ask a question, 
   Are you talking about ContextMenu Class or ContextMenu Event?
   
   for right-click I have to add ContextMenu Event in any class which was in IterativeObject class in flex, if yes then in which class should I add this Event?
   
   or you are talking about ContextMenu Class?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org