Automatically Select Row in OnChange Event of Datepicker

Automatically Select Row in OnChange Event of Datepicker

c-myers1c-myers1 Posts: 43Questions: 16Answers: 0

My use case: (1) when a date is picked, I want the row automatically selected (checkbox ticked, row highlighted). (2) When checkbox is unchecked, I want the datepicker field blanked out.

I've achieved item (2) but stuck with item (1). This is related to https://datatables.net/forums/discussion/48727/checkbox-selection-on-remote-ajax-data#latest.

I've tried row.select() and row().select(): both do not work.

How do I get this done?

Answers

  • kthorngrenkthorngren Posts: 21,300Questions: 26Answers: 4,945

    You would use row().select(). You will need to provide a row-selector that references the row you are working with. You can look at row() for more details.

    Kevin

This discussion has been closed.