jQuery UI Widgets Forums Getting Started jqxgrid cardview copy

This topic contains 4 replies, has 3 voices, and was last updated by  svetoslav_borislavov 8 months, 2 weeks ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • jqxgrid cardview copy #133555

    robf
    Participant

    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.
    Rob

    jqxgrid cardview copy #133567

    ivanpeevski
    Participant

    Hi robf,

    You can enable that by setting $(‘#jqxGrid’).jqxGrid({enablebrowserselection: true});

    Best Regards,
    Ivan Peevski
    jQWidgets team
    http://www.jqwidgets.com/

    jqxgrid cardview copy #133606

    robf
    Participant

    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!
    Rob

    jqxgrid cardview copy #133617

    robf
    Participant

    Hi 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.
    Rob

    jqxgrid cardview copy #133620

    Hi,

    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 Borislavov

    jQWidgets Team
    https://www.jqwidgets.com/

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.