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. Image for the cookie policy date
close icon

How to display color picker control for each node in tree grid dynamically?

Hi, 
     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
[Violation] Forced reflow while executing JavaScript took <N>ms
[Violation] 'mousedown' handler took <N>ms





Regards, 
Justin Ebenezer



Attachment: bugs_27e9615b.zip

3 Replies

VN Vignesh Natarajan Syncfusion Team March 29, 2019 12:23 PM UTC

Hi Ebenezer, 
 
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. 

Please refer the below public forums. 



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. 

Please refer the below link for the sample. 


Please share the following details regarding your query. 

  1. In our sample, when we click on color picker the palette is opening on the left corner of page, are you referring to this behavior as the issue?
  2. Share how you have rendered the Color Picker component dynamically.
  3. Share the exact scenario of the issue with video demonstration  of the issue.
  4. Share the screenshot of script error in console window (if any)


Regards, 
Vignesh Natarajan. 




EB Ebenezer April 4, 2019 11:38 AM UTC

Hi,
In the given url:  https://stackblitz.com/edit/angular-qxkhpg?file=app.module.ts. There is no syncfusion colorpicker created. 

In my application: 
  • ColorPickerModule is also imported in my AppModule. But color picker is not created. It generates only html5 color picker.
  • I have shared my code and attachment of the violation message which is generated n number of times.
  • [Violation] 'message' handler took <N>ms. Also freezes my browser.


Attachment: Query_7f8282a3.zip


VN Vignesh Natarajan Syncfusion Team April 8, 2019 12:35 PM UTC

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. 

Regards, 
Vignesh Natarajan. 


Loader.
Live Chat Icon For mobile
Up arrow icon