jQuery UI Widgets › Forums › Getting Started › jqxgrid cardview copy
Tagged: cardview jqxgrid copy select
This topic contains 4 replies, has 3 voices, and was last updated by svetoslav_borislavov 1 year, 4 months ago.
-
Authorjqxgrid cardview copy Posts
-
Hi,
When in the cardview of the jqxgrid, how to I enable the user to select and copy data from that card?Also, can I implement a right-click menu within the card?
Thanks.
RobHi robf,
You can enable that by setting $(‘#jqxGrid’).jqxGrid({enablebrowserselection: true});
Best Regards,
Ivan Peevski
jQWidgets team
http://www.jqwidgets.com/Hi Ivan,
That solution does not really work. Let me explain.
I have a grid with a toggle button to switch from GRID to CARD views. If I {enablebrowserselection: true} and select a row in the grid, then do a ctrl-c it does copy ALL the data in the row. I verify by paste.
If I now switch to the CARD view, and highlight part of the data inside a card – e.g. the first two rows/columns of that cardview/table, and then press ctrl-c, it continues to copy the LAST selected row from with the grid. It does not copy the selection I highlighted inside the cardview. Very odd behavior, indeed.
Is there something else I need to activate or “clear” before trying to highlight and copy from the cardview? Also, for the second part of my question, can I add a right-click menu option for the cardview – e.g. if I right-click in the cardview cell, and pop a menu that reads “copy” and have that copy the contents of that cell.
Please let me know how I might proceed.
Thanks for your time!
RobHi Ivan,
Following up with a fiddle you can test with: https://jsfiddle.net/rfossella/a45uret1/43/So again note, if I am in GRID mode and highlight the first row and CTRL-C, then paste, the row is correctly copied.
If I switch to CARDVIEW and highlight the text on the third cell and CTRL-C, then paste, the same first row of data is still copied. I also verified that if I go back to the grid, and simply highlight any row, then switch to cardview, highlight, and copy, it is opying the row that is currently highlighted in the grid.Hope this help to identify the issue.
Thanks.
RobHi,
Thank you for reporting this, I have opened a work item for it!
Meanwhile, if you have any additional questions, do not hesitate to contact us!Best regards,
Svetoslav BorislavovjQWidgets Team
https://www.jqwidgets.com/ -
AuthorPosts
You must be logged in to reply to this topic.