How do I display text in a grid row conditionally using a row template? I have tried the following variations.
#Sex == 1 ? Male : Female#
#Sex == 1 ? \"Male\" : \"Female\"#
#Sex == 1 ? <span>Male</span> : <span>Female</span>#
Here is the row template definition:
.ClientRowTemplate(
"<tr data-uid='#: uid #' class='k-master-row p-2 m-2'>" +
"<td class='k-hierarchy-cell k-table-td' aria-expanded='false' role='gridcell' style='max-width:40px;'>" +
"<a href='\\#' aria-label='Expand' tabindex='-1' class='k-icon k-i-caret-alt-right'></a>" +
"</td>" +
"<td class='defendantDetails col-sm-12 col-md-10'>" +
// THIS IS THE PROBLEMATIC SPOT
"<div class='d-inline-block'>#Sex == 1 ? <span>Male</span> : <span>Female</span># - #=Race# - SSN: #=Ssn# - DOB: #=Dob#</div>" +
"</div>" +
"<div class='d-inline-block ms-auto'>" +
"<button type='button' class='ms-auto k-grid-edit-command k-button k-button-md k-rounded-md k-button-solid k-button-solid-primary'>" +
"<span class='k-svg-icon k-svg-i-pencil k-button-icon' aria-hidden='true'>" +
"<svg viewBox='0 0 512 512' focusable='false' xmlns='http://www.w3.org/2000/svg'>" +
"<path d='m334.9 86.6 45.3-45.3c12.4-12.4 32.8-12.4 45.3 0l45.3 45.3c12.4 12.4 12.4 32.8 0 45.3l-45.3 45.3-90.6-90.6zm-22.6 22.6L32 389.5V480h90.5l280.3-280.3-90.5-90.5zM99.9 412.1l-22.6-22.6 235-235 22.6 22.6-235 235z'></path>" +
"</svg>" +
"</span>" +
"<span class='k-button-text'>Edit</span>" +
"</button>" +
"<button type='button' class='k-grid-remove-command k-button k-button-md k-rounded-md k-button-solid k-button-solid-base'>" +
"<span class='k-svg-icon k-svg-i-x k-button-icon' aria-hidden='true'>" +
"<svg viewBox='0 0 512 512' focusable='false' xmlns='http://www.w3.org/2000/svg'>" +
"<path d='M416 141.3 301.3 256 416 370.7 370.7 416 256 301.3 141.3 416 96 370.7 210.7 256 96 141.3 141.3 96 256 210.7 370.7 96l45.3 45.3z'></path>" +
"</svg>" +
"</span>" +
"<span class='k-button-text'>Delete</span>" +
"</button>" +
"</div>" +
"</td>" +
"</tr>"
)