editSettingsTemplate not working on angular 9

Hi.
- I have a project on angular 9.0.2 and i use component @syncfusion/ej2-angular-grid and i need create my template for add/edit function but it not working.
after that i created the small project on angular 8.2.0 and it working.
I don't understand why, please you can check it.
thanks

6 Replies

MS Magesh Sabapathi Syncfusion Team March 11, 2020 02:21 PM UTC

Hi nguyen , 
 
Greetings from syncfusion support 
 
Query : editSettings template not working in Angular 9. 
 
We have analyzed your query in the Angular 9 sample but we could not reproduce the issue at our end. We also attached a working sample below. Kindly refer that. If you still face the issue please send us the below details, 
  1. Please share if you got any script error in your console.
  2. Video demonstration of the issue reproducing.
  3. If possible try to reproduce the issue in our sample.


Please get back to us with the above details 

Regards 
Magesh 



PC pcafstockf March 13, 2020 05:52 PM UTC

Hi Magesh,

This is a serious and significant problem.  I think nguyen just didn't provide enough detail about his "template"

If you take the sample from the SyncFusion Grid documentation Grid Editing (Template-driven Forms), you can see this problem.
For a quick test, I took the sample project you linked to and then pasted the code from the Template-driven Forms example into app.component.ts and app.component.html.
You will need to clean the sample code up a little, as app.component.ts has no 'pageSettings' field that template-driven.html references, and it won't compile because AppComponent.data and AppComponent.orderData are not of type IOrderModel[] and IOrderModel respectively.

BUT once you have it all cleaned up and properly building and running...

Go change the html inside the ng-template (maybe change the label "Order ID" to "Order FOO ID".  You will see that the Grid is not actually using the ng-template at all.

And worse, if you disable Ivy with "angularCompilerOptions": { "enableIvy": false } (and rebuild), the Grid completely ignores your e-column statements and displays all fields


MS Magesh Sabapathi Syncfusion Team March 18, 2020 01:24 PM UTC

Hi nguyen , 

Query 1 : If enable: false, Grid completely ignores your e-column. 

We have validated your query and confirmed it is bug and logged defect Grid completely ignores the e-columns when enableIvy is set to falsereport for the same. At Syncfusion, we are committed to fixing all validated defects (subject to technological feasibility and Product Development Life Cycle ) and including the defect fix in our upcoming weekly release which is expected to be rolled out  in the Volume 1 Release  on March 23rd, 2020. 
 
Until then we appreciate your patience. 

Regards 
Magesh 



PC pcafstockf March 18, 2020 09:04 PM UTC

Hi Magesh,

Thank you for your response, it's good to see a defect opened for the scenario where Ivy is disabled.

BUT...
The more serious case is that templates are being completely ignored (I made the mistake of reporting two defects in the same posting).

If you have questions, please see my description of how you can reproduce this with your own sample code.

I've seen a number of postings about this problem.
Has there been a defect filed for this problem (of editSettingsTemplate being ignored)?

Thanks,

-Frank


NG nguyen March 19, 2020 03:24 AM UTC

Thanks you for your reply. I will upgrate angular version when you fix it.


JA Jesus Arockia Sankaran S Syncfusion Team March 20, 2020 01:09 PM UTC

Hi Nguyen, 

Sorry for the delay in getting back to you about template related issue.  

We have investigated the reported issue in our end and we were able to reproduce the issue “Edit Template is not working in Angular 9”. We confirm this as a bug and logged a defect report. You can keep track of the bug from the feedback portal below. 


The fix will be available in first weekly patch release after our upcoming Volume 1, 2020 main release.  

If you have any more specification/precise replication procedure or a scenario to be tested you can add it as a comment in the portal. 
 
Regards, 
Jesus Arockia Sankaran S 


Loader.
Up arrow icon