I'm facing a problem in tree grid control, i'm trying to provide color picker for each node and also for its child dynamically. If i do so, color picker control was not working and it throws following violation warnings on console to n times.
[Violation] 'message' handler took <N>ms
[Violation] 'setTimeout' handler took <N>ms
VNVignesh Natarajan Syncfusion Team March 29, 2019 07:23 AM
Thanks for using Syncfusion products.
Query : If i do so, color picker control was not working and it throws following violation warnings on console to n times.
We have prepared a sample as per your suggestion and we are able to reproduce the reported behavior at our end. The mentioned warnings are not related to our controls. These warning are a part of the Chrome browser which indicates that there is an opportunity to improve the performance in the running scripts. So, these warnings does not prevent our controls from working.
You have mentioned that the color picker component is not working when it is rendered dynamically. We have also created a sample by rendering the ColorPicker component in a column using the Template Column feature of the TreeGrid and it is working fine.
VNVignesh Natarajan Syncfusion Team April 8, 2019 07:35 AM
Hi Justin Ebenezer,
Thanks for contacting Syncfusion forums.
Query: How to display color picker control for each node in tree grid dynamically?
We have analyzed the provided sample (https://stackblitz.com/edit/angular-qxkhpg?file=app.module.ts) in chrome browser and it works fine without any violation message. We suspect that there is some issue with your browser. So we suggest you to ensure the reported sample by opening it in “incognito” window or any other browser.
Refer the below screenshot for your reference
If you have any other queries, please get back to us.