Editing Dilemma of columns not in the datatable being viewed.

Editing Dilemma of columns not in the datatable being viewed.

wyattbikerwyattbiker Posts: 25Questions: 14Answers: 0

For example I am showing a datatable of user purchases. When I click on the user account I would like to open up the user profile and edit it.

Something like https://editor.datatables.net/examples/advanced/formOnlyData.html but the form data should come from another source.

Any ideas?

Thanks!

This question has an accepted answers - jump to answer

Answers

  • kthorngrenkthorngren Posts: 20,140Questions: 26Answers: 4,735

    Not sure if this is what you want but one option is to display two tables; one with profile info and the other with purchase info. Each table will have its own editor instance. I'm imagining the end user is looking at their purchases.

    Or is this a table of purchases for multiple users and when the user cell is selected you want an edit form with that users profile?

    Kevin

  • wyattbikerwyattbiker Posts: 25Questions: 14Answers: 0

    It's a table of of purchases for multiple users. Click on a user account to edit that user's profile.

  • kthorngrenkthorngren Posts: 20,140Questions: 26Answers: 4,735
    Answer ✓

    Bubble editing allows for multiple values in a field for editing:
    https://editor.datatables.net/examples/bubble-editing/grouped.html

    You can render what you want the field to display then you can use editField to define which fields (can be anything returned in the Ajax response) are edited when the field is selected.

    Kevin

This discussion has been closed.