Select A Row of Known DT_RowId

Select A Row of Known DT_RowId

PaulusPaulus Posts: 69Questions: 17Answers: 5

Please, after loading the table, I wish to select a row of known DT_RowId. How to implement this?

OT: But, please add filter to the web-site searches, so that we could filter say forum entries from sample entries.

This question has an accepted answers - jump to answer

Answers

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

    Please, after loading the table, I wish to select a row of known DT_RowId. How to implement this?

    Using the id selector like you would with jQuery or querySelector:

    table.row( '#myId' );
    

    OT: But, please add filter to the web-site searches, so that we could filter say forum entries from sample entries.

    Agreed. Being able to refine the filtering is something I would like to find time to implement.

    Allan

  • PaulusPaulus Posts: 69Questions: 17Answers: 5
    edited January 2017

    Hello Allan,

    It is not working, I'm still missing something? My DT_RowId are self-generated and are all numbers. So, I tried this after creation...without success

    table.row('#2').select();
    
  • PaulusPaulus Posts: 69Questions: 17Answers: 5
    Answer ✓

    Sorry, Allan it worked. I set it in the processing.dt event and it worked fine. Thanks for the support.

This discussion has been closed.