Я хочу по умолчанию проверить одну радиокнопку из трех вариантов в nopcommerce 4.3
Вот мой код,
<div class="col-md-6">
<div class="raw">
<div class="col-md-2">
<div class="radio">
<label>
@Html.RadioButton("LabourChargeUnit", "false", (Model.LabourChargeUnit == "PCS"), new { id = "LabourChargeUnit_PCS"})
@T("Admin.Catalog.Product.Fields.LabourChargeUnit.PCS")
</label>
</div>
</div>
<div class="col-md-2">
<div class="radio">
<label>
@Html.RadioButton("LabourChargeUnit", "false", (Model.LabourChargeUnit == "PER"), new { id = "LabourChargeUnit_PER" })
@T("Admin.Catalog.Product.Fields.LabourChargeUnit.PER")
</label>
</div>
</div>
<div class="col-md-2">
<div class="radio">
<label>
@Html.RadioButton("LabourChargeUnit", "true", (Model.LabourChargeUnit == "GM"), new { id = "LabourChargeUnit_GM" })
@T("Admin.Catalog.Product.Fields.LabourChargeUnit.GM")
</label>
</div>
</div>
</div>
</div>
Теперь я пробовал много вещей, например new {@ checked = "checked"}, true / false, 0/1 , но не работает.