Cannot clear symbol palette

Hi,

I have a SfDiagram with two SfSymbolPalettes. One palette is a straight forward basic shape and the second is built from a list that reloads based on a dropdown value. The problem is that the second palette list never clears. I want the user to select a drop down which produces the symbols and then change the displayed symbols when the dropdown is changed.

The first dropdown trigger works fine and creates a list of symbols as desired but subsequent lists append visually to the symbol list instead of removing the originals. In debug, it looks like the underlying list is correct but the rendered version does not update correctly. How do I get he rendered list to clear?


EDIT: I found the answer myself. In case anyone else hits this, you need to use the runtime methods RemovePalettes or RemovePaletteItmes and their Add* conterparts.


3 Replies

GG Gowtham Gunashekar Syncfusion Team October 6, 2021 05:10 PM UTC

Hi Simon,  
 
We can able to replicate the reported issue at our end we are validating the issue and update you with more details on October 8th 2021. 
 
Regards, 
Gowtham  



GG Gowtham Gunashekar Syncfusion Team October 8, 2021 03:03 PM UTC

 
Hi Simon,   
 
    
Reported Issue : RemovePaletteItem API does not remove the symbols added at runtime in the palette 
 
We can reproduce the issue and confirmed this as a defect. We have logged a defect report for this issue. We will fix this issue and provide the patch on 26th  October, 2021 weekly patch release.    
     
    
Regards, 
Gowtham 



SS Sivakumar Sekar Syncfusion Team October 26, 2021 12:42 PM UTC

Hi Simon, 

We have fixed the reported issue and included it in our patch release (v19.3.0.47 patch) which is rolled out successfully. 

Please upgrade to the latest NuGet version to resolve this issue.   

Regards, 
Sivakumar

Loader.
Up arrow icon