Hello
I'm trying to use a custom template for a grid column which contains fields values and not working
Could you please assist ?
Is Working
<a onclick="UpsertDosDados(${Carro.Id})" class="btn btn-danger mr-2 mb-2" title="Carro na casa do condutor - alterar dados"><i class="fas fa-house-user"></i></a>
Not Working now ... (This code was working for some time in version 19.1.0.54) I'm using your cdn files in _Layout.cshtml https://cdn.syncfusion.com/ej2/bootstrap4.css and https://cdn.syncfusion.com/ej2/dist/ej2.min.js
<a rel="nofollow" rel='nofollow' href="Parqueamento/Upsert?idParq=0&idCarro=${Carro.Id}" class="btn btn-danger mr-2 mb-2" title="Carro na casa do condutor - alterar dados"><i class="fas fa-house-user"></i></a>
Please view the files in attachment .
|
<ejs-grid id="Grid" dataSource="ViewBag.dataSource" allowPaging="true" >
<e-grid-pagesettings pageCount="5"></e-grid-pagesettings>
<e-grid-columns>
<e-grid-column field="OrderID" headerText="Order ID" validationRules="@(new { required=true})" isPrimaryKey="true" textAlign="Right" width="100"></e-grid-column>
<e-grid-column field="CustomerID" headerText="Customer Name" validationRules="@(new { required=true})" width="140"></e-grid-column>
<e-grid-column field="OrderDate" headerText="Order Date" editType="datepickeredit" format="yMd" width="120"></e-grid-column>
<e-grid-column field="ShipCountry" template="#templateAccoes" headerText="Ship Country" editType="dropdownedit" width="140"></e-grid-column>
</e-grid-columns>
</ejs-grid>
<script id="templateAccoes" type="text/x-template">
<a target="_blank" rel='nofollow' rel='nofollow' href=https://en.wikipedia.org/wiki/${ShipCountry}>${ShipCountry}</a>
</script>
|
Hello
I've seen the solution in forum 167442
|
Subject: ejs-grid url passed by the template, logic changed ? |
Now is working..,
Thank you for your support.