- Home
- Forum
- ASP.NET MVC (Classic)
- Tag Cloud Link
Tag Cloud Link
I would like to know how can i make the link in the tag cloud to open in the same browser window instead of opening the link in a new window or new tab by default.
thanks
Regards
Shonk
Thank you for contacting Syncfusion support.
Query: How to open the link in the tag cloud in same window?
We are unable to reproduce the reported issue at our end in ASP.NET MVC Classic platform. From the query we suspect that you are using ASP.NET MVC, which reproduces the reported scenario.
In case you are using ASP.NET MVC, we suggest you to use the following workaround which replaces all the anchor tags(<a>) attribute value with in the tag cloud.
<code>
[CSHTML]
@Html.EJ().TagCloud("techWebList").Datasource((IEnumerable<WebsiteCollection>)ViewBag.datasource).TagCloudFields(tag => tag.Text("text").Url("url").Frequency("frequency")).Title("Tech Sites").ClientSideEvents(evt => evt.Create("oncreate"))
[Script]
function oncreate() {
$("#techWebList").find("a.e-txt").attr("target", "_self");
}
</code>
If you are using ASP.NET MVC Classic and can reproduce the issue at your end, please check whether any additional changes have occurred at your end. Else, share the sample with the replication procedure with us. We are happy to help you.
Regards,
Ragunath M
We are unable to reproduce the reported issue (“After few reload in Tagcloud, throws ReferenceError: ej is not defined error in Mozilla browser 39.0 version.”).While clicking the Tagcloud link, it reloads in same page but it doesn’t throws any error. We have prepared a sample and it can be downloaded under the following location,
Sample: Sample
Please check with the above sample and if the problem still persists, then revert us by modifying the sample based on your application along with replication procedure.
Also, we have attached the KB link for this issue “ej is not defined”.
Regards,
Saranya S
Hi Shonk,
We are happy to hear that your issue has been resolved. Kindly get back to us if you have any other queries.
Regards,
Saranya.S
- 5 Replies
- 3 Participants
-
SY SK Yong
- Oct 14, 2015 05:08 PM UTC
- Oct 20, 2015 05:17 AM UTC