Multiple DataTables Selecting

Multiple DataTables Selecting

omurltsomurlts Posts: 35Questions: 6Answers: 0

Hello

Im want first install selecting item and selecting change two table changed data
Im using server side option

Do you have tips or examples

Answers

  • ComGreedComGreed Posts: 15Questions: 3Answers: 1

    If you're talking about a one-to-many relationship then either Parent / child editing with Editor or Parent / child editing in child rows should be perfect for you.

  • omurltsomurlts Posts: 35Questions: 6Answers: 0

    yes im need this Parent / child editing with Editor

    but first install have selected (picture same)

    ty for helping.

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin

    @omurlts - Are you happy that this is answered now, or is there a follow on question?

    Thanks,
    Allan

  • omurltsomurlts Posts: 35Questions: 6Answers: 0
    edited February 2020

    Hello Alan im happy but just need on first load how selected last item ?

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin

    Use the row().select() method - e.g. in your DataTable initialisation:

    initComplete: function (settings) {
      var api = new $.dataTable.Api(settings);
      api.row({order:'applied'}).select(); // get the first row in the current display and select it
    }
    

    Allan

  • omurltsomurlts Posts: 35Questions: 6Answers: 0
    edited February 2020

    Ty very much Allan

    initComplete: function (settings) { var api = this.api(settings); api.row({order:'applied'}).select(); // get the first row in the current display and select it },

    this working :)

This discussion has been closed.