On double click , there is no out in the console window.
@using QCRM.Models.ViewModels
@model List<AccountSummaryView>
@{
Layout = "/Views/Shared/_Layout.cshtml";
}
<script type="text/javascript">
function openAccountDetailPageTest() {
console.log("Double clicked worked!!!");
}
</script>
<div class="pl-3 text-uppercase bg-primary text-white ">
Account List
</div>
<div id="loaderAccountList" data-request-url="@Url.Action("AccountDetail", "Account")"></div>
<div class="pt-3">
<ejs-grid id="gridStaffList" allowTextWrap="true" allowFiltering="true" allowSorting="true" toolbar="@(new List<string>() {"Search" })" recordDoubleClick="openAccountDetailPageTest" dataSource="@Model" allowPaging="true">
<e-grid-filterSettings type="Menu"></e-grid-filterSettings>
<e-grid-columns>
<e-grid-column field="AccountName" headerText="Account" width="200"></e-grid-column>
<e-grid-column field="AccountTypeDescription" hideAtMedia='(min-width: 500px)' headerText="Type" width="80"></e-grid-column>
<e-grid-column field="RoleName" filter="@(new { type="CheckBox"})" clipMode="EllipsisWithTooltip" template="#roleTemplate" width="80" headerText="Role"></e-grid-column>
@*<e-grid-column template="#parentTemplate" filter="@(new { type="CheckBox"})" clipMode="EllipsisWithTooltip" headerText="Parent"></e-grid-column>*@
<e-grid-column field="ParentName" filter="@(new { type="CheckBox"})" clipMode="EllipsisWithTooltip" width="200" template="#parentTemplate" headerText="Parent"></e-grid-column>
<e-grid-column field="IndustryDescription" hideAtMedia='(min-width: 500px)' headerText="Industry" width="100"></e-grid-column>
<e-grid-column field="CategoryDescription" hideAtMedia='(min-width: 500px)' headerText="Category" width="100"></e-grid-column>
<e-grid-column field="CountryName" headerText="Country" hideAtMedia='(min-width: 500px)' filter="@(new { type="CheckBox"})" clipMode="EllipsisWithTooltip" template="#countryTemplate" width="100"></e-grid-column>
<e-grid-column field="AccountManager" filter="@(new { type="CheckBox"})" clipMode="EllipsisWithTooltip" template="#empTemplate" width="100" headerText="Account Manager"></e-grid-column>
<e-grid-column field="AccountId" visible="false" isPrimaryKey="true"></e-grid-column>
<e-grid-column field="ProtectAccountId" visible="false"></e-grid-column>
</e-grid-columns>
</ejs-grid>
</div>
<script type="text/x-jsrender" id="empTemplate">
<div>
<div class="empimg">
<span class="e-userimg">
</span>
</div>
<span id="Emptext">${AccountManager}</span>
</div>
</script>
<script type="text/x-jsrender" id="parentTemplate">
<div>
<div class="empimg">
<span class="e-userimg">
</span>
</div>
<span id="Emptext">${ParentName}</span>
</div>
</script>
<script type="text/x-jsrender" id="roleTemplate">
<div>
<div class="empimg">
<span class="e-userimg">
</span>
</div>
<span id="Emptext">${RoleName}</span>
</div>
</script>
<script type="text/x-jsrender" id="countryTemplate">
<div>
<div class="empimg">
<span class="e-userimg">
</span>
</div>
<span id="Countrytext">${CountryName}</span>
</div>
</script>
<script id="parentTemplate" type="text/x-template">
${if(AccountTypeDescription === "Branch")}
${ParentName}
${/if}
</script>