Using checkboxes in datatables.
Using checkboxes in datatables.

In my application we have two sets of records on the webpage. A record and it's corresponding source records, source record is displayed clicking on the expand/collapse button in front of each record, I have used datatables to implement that. So, here's my question, i have checkboxes in front of each source record, what i want to achieve is at time only one's records corresponding source records can be checked, if a user tries to check the another records source records they should get an alert.
Any idea how i can achieve this?