Templates not working with core tag helpers?


 <e-column field="HotelId" header-text="" is-primary-key="true" template-id="#linkbuttons"></e-column>

<script type="text/x-jsrender" id="linkbuttons">
        <e-content-template>
            @if (User.IsInRole("Admin"))
            {
                <div class="btn-group">
                    <a class="e-botton" asp-action="Edit" asp-route-id="{{:HotelId}}">Edit</a>
                    <a class="e-botton" asp-action="Details" asp-route-id="{{:HotelId}}">Details</a>
                    <a class="e-botton" asp-action="Delete" asp-route-id="{{:HotelId}}">Delete</a>
                </div>
            }
            else
            {
                <a class="e-botton" asp-action="Details" asp-route-id="{{:HotelId}}">Details</a>
            }
        </e-content-template>
    </script>

this is the resultant link http://localhost:5000/hotel/edit/%7B%7BHotelId%7D%7D

asp.net core tag helpers apparently block processing of this syntax got any suggestions?



1 Reply

MS Mani Sankar Durai Syncfusion Team November 29, 2017 12:44 PM UTC

Hi Morgan, 

Thanks for contacting Syncfusion support.  

We have checked based on your code example and we are not able to reproduce the reported issue. Here template column is working fine based on the given template value.  
We have also prepared a sample that can be downloaded from the below link 
If you still face the issue please get back to us with the following details.  
1.       Share the screenshot/video of the issue that you have faced.  
2.       Share the exact scenario of the issue  
3.       Share the Syncfusion Essential studio version details. 
4.       If possible please reproduce the issue in the above attached sample. 
The provided information will help us to analyze the issue and provide you the response as early as possible. 
Regards, 
Manisankar Durai. 



Loader.
Up arrow icon