Editing column in one row

Editing column in one row

kiwiszonkiwiszon Posts: 2Questions: 1Answers: 0

Hello, I need to edit single row in my datatables. Because I'm woring on ready project, and i can't edit it to much, i need a way to edit only one row. Is there any way to do this?

Answers

  • johann_maderjohann_mader Posts: 15Questions: 1Answers: 0

    Hi,

    on the javascript initialization of your datatable add the select option:

    dom: 'Bfrtip',
    ajax: 'sources/table.STG_TAB_ARTIKEL.php',
    scrollY: '80vh',
    select: "single",

    Hope that one helps you :)

    Br Toni

  • kiwiszonkiwiszon Posts: 2Questions: 1Answers: 0

    I've asked wrong question. I for example i'm iterating on rows, and when i find the row that i want to edit, i want to do this only by knowing row number.

  • allanallan Posts: 62,051Questions: 1Answers: 10,172 Site admin

    Are you using Editor or something else to do the editing? For Editor you would pass in the row's index to the edit() method (e,g, row().index()).

    Allan

This discussion has been closed.