As suggested by Mario, the solution has no particular relevance to the razor, however this may help. Create a checkbox using Html.Checkbox or Html.CheckboxFor if you have strict model binding. Add the onclick eventhandler checkbox to the checkbox when adding
@Html.Checkbox( "somename", new { @onclick="function-to-open-dialog()"})
"" " , . jquery, $(" # DialogId "). Dialog (" open")