Assuming that you are making an ajax call to retrieve the data from database, put the below code in the success function of the ajax call:
$('#checkboxId').prop('checked', response.IsChecked);
"response.IsChecked" holds boolean value true/false.
Hope this helps.