ejs-grid url passed by the template, logic changed ?

Hi

We are using ejs-grid component in .Net core MVC. 

In one of the column we store url within a template :

<e-grid-column field="cust_name" headertext="Customer Name" Template="#stlmtTemplate"></e-grid-column>


Refrence to the template


<script id="stlmtTemplate" type="text/x-template">    

<div style="display:inline-block">        

<a rel='nofollow' href="/xxxxxx/xxxxx?calcGrpSkid=${calc_grp_skid}">${cust_name}</a>    

</div><

/script>


Today something has changed and code is not working properly anymore. It seems that url that is passed via template is now modified, part of the url is now removed. 

Above mentioned code used to generate below html :

<a rel='nofollow' href="/xxxxx/xxxxx?calcGrpSkid=paramter_value'="">xxxxx</a>

Today the html looks like this :

<a rel='nofollow' href="/xxxxxx/xxxxx?calcGrpSki" =paramter_value'="">xxxxxx</a>

Could you please let us know, if there was any change to the component logic?


Thanks in advance  for any help.





9 Replies

TO Tomasz July 20, 2021 06:19 PM UTC

I have the same problem.

When I modify this sample:

https://www.syncfusion.com/downloads/support/directtrac/general/ze/SampleColTemp-242834600 

and changed template to:

<script id="template" type="text/x-template">

    <div>

        <a rel='nofollow' href="/test/test/edit?id=${ShipCity}">${ShipCity}</a>

    </div>

</script>


it is the result:

<div>

<a rel='nofollow' href="/test/test/edit?i" =tusil'="">Tusil</a>

</div>

 

When we expect fix for this?

How do you protect against such unexpected problems in the future?

We have production applications that have stopped working...




TS Thiyagu Subramani Syncfusion Team July 21, 2021 08:28 AM UTC

Hi Tomasz, 

Thanks for contacting Syncfusion support. 

We confirmed that your reported issue was reproduced (version 19.2.48) from our side after checking your given information. We apologize for the inconvenience, and we will provide further information on the issue tomorrow (22nd July 2021). Until then, we recommend that you use the queryCellInfo event to achieve your requirement. In this case, we've defined rel='nofollow' href as per your needs. 

For more information, please see the code below. 

<script id="template" type="text/x-template"> 
    <div> 
        <a rel='nofollow' rel='nofollow' href="">${ShipCity}</a> 
    </div> 
</script> 
 
<script> 
    function queryCellInfo(args) { 
        if (args.column.field == "ShipCity") { 
           args.cell.querySelector("a").rel='nofollow' href = "/test/test/edit?id=" + args.data.ShipCity;  
        }  
    } 
</script> 

Screenshot:  

 

Please get back to us, if you need any further assistance. 

Regards, 
Thiyagu S 



TK Tomasz Kwiatkowski July 22, 2021 12:31 PM UTC

Hi Support,


Any updates on the issue, We need to plan if we can wait for a fix or if we should switch to different framework.


Regards

Tomek



RS Robert Saddler July 22, 2021 02:28 PM UTC

THIS ISSUE HAS KILLED ALL GRIDS ON MY WEBSITE!!!!!



YY Yoab Youssoufou July 23, 2021 01:39 AM UTC

Please support where are we on this? I rely heavily on grids and it's a nightmare rioght now on production



VS Vignesh Sivagnanam Syncfusion Team July 23, 2021 05:01 AM UTC

Hi Tomasz 

Thanks for your patience, 

We can reproduce the reported issue (“data is not bound properly into the rel='nofollow' href attribute”) at our end. Currently, we have forwarded the query to the concerned team and they are validating with high priority. So, we will update the further details on July 26th, 2021. 

Until then, you can use previous version (19.2.46) to resolve this temporarily. 


[Layout.cshtml] 

<head> 

    @* Syncfusion Essential JS 2 Scripts *@ 

</head> 


Please let us know if you have any concerns. 

Regards,   
Vignesh Sivagnanam 



VS Vignesh Sivagnanam Syncfusion Team July 23, 2021 01:18 PM UTC

Hi Tomasz,  
  
We deeply regret the inconvenience caused. 

We have already reproduced the reported issue (“data is not bound properly into the rel='nofollow' href attribute”) in our last weekly patch release (v19.2.48). We resolved the issue and refreshed CDN link now. So, kindly use the below script and check from your end. 


[Layout.cshtml] 

<head> 
 
    @* Syncfusion Essential JS 2 Styles *@ 
    <link rel="stylesheet" rel='nofollow' href=https://cdn.syncfusion.com/ej2/material.css /> 
 
    @* Syncfusion Essential JS 2 Scripts *@ 
    <script src=https://cdn.syncfusion.com/ej2/dist/ej2.min.js></script> 
 
</head> 
 

Still, if you have some issue, share the code details you have used in the template. We will help you to resolve it. 

Regards,  
Vignesh Sivagnanam 



YY Yoab Youssoufou replied to Vignesh Sivagnanam July 24, 2021 12:59 PM UTC

Thank you. All ok now



VS Vignesh Sivagnanam Syncfusion Team July 26, 2021 09:50 AM UTC

Hi Yoab 

Thanks for the update 

We are happy to hear that the provided solution works fine at your end. 

Please get back to us if you need any further assistance. 

Regards, 
Vignesh Sivagnanam 


Loader.
Up arrow icon