We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Anchor tag Helper not working in Dashboard Layout

Thread ID:

Created:

Updated:

Platform:

Replies:

150213 Dec 26,2019 02:42 PM UTC Dec 30,2019 06:30 AM UTC ASP.NET Core - EJ 2 2
loading
Tags: DashboardLayout
Ronald Dirkx
Asked On December 26, 2019 02:42 PM UTC

When I use an anchor tag helper with the asp-... attributes on a dashboard card then there is no URL generated. If I use the rel='nofollow' href attribute then the URL is generated correctly. The first line in the below code gives me a URL, the second line does not (code cut for brevity):

<ejs-dashboardlayout id="defaultLayout" columns="5" cellAspectRatio="1" cellSpacing=cellSpace>
        <e-dashboardlayout-panels>
            <e-dashboardlayout-panel sizeX="1" sizeY="1" row="1" col="1" header="<div>Action Center</div>" content="#pnlActionCntr">
            </e-dashboardlayout-panel>
        </e-dashboardlayout-panels>
    </ejs-dashboardlayout>

<script id="pnlActionCntr" type="text/template">
     <a class="badge badge-primary badge-pill" rel='nofollow' href="./Task/Manage?status=ToValidate">To validate</a>
     <a  asp-controller="MdxEnt" asp-action="Index" asp-route-status="@Model.Status">To validate</a>
</script>

If I put both lines of code on the same page but outside of the dashboard layout then both lines generate the correct URL.

Ronald Dirkx
Replied On December 26, 2019 05:06 PM UTC

I must have made an error somehow, probably a typo in HTML.
It is working, the URL is generated correctly by the anchor tag.

Shameer Ali Baig Sulaiman Ali Baig [Syncfusion]
Replied On December 30, 2019 06:30 AM UTC

Hi Ronald, 
  
Thanks for contacting Syncfusion support. 
  
We are happy that the reported problem at your end is resolved. Please, let us know if you need any assistance. We will be happy to assist you. 
  
Regards, 
Shameer Ali Baig S. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon