Change selectionSettings via typescript

I'm using angular spreadsheet and want to change selectionSettings of the spreadsheet on two different function clicks. For first button, it will change the selectionSettings mode to None and for second one, it will be changed to Multiple.

I'm achieving this via this code snippet:

this.spreadsheetObj.selectionSettings.mode = 'None'; // for first button click

this.spreadsheetObj.selectionSettings.mode = 'Multiple'; // for second button click


It is changing the mode appropriately but the I can't see selection styles for selected cells anymore.

I'm seeing only the green dot but no background styling for selected range. I inspected and found the e-selection element is not being generated if i change selectionsettings via typesript

Any solution for this?? Please tell asap


1 Reply

SP Sangeetha Priya Murugan Syncfusion Team December 8, 2021 11:42 AM UTC

Hi Vivek, 
 
Thank you for contacting Syncfusion support. 
 
We have checked your reported issue by setting the selectionSettings mode in a button click event and the selection element works properly in our end. For your convenience, we have prepared the sample based on your provided details. Please find the link below. 
 
 
Could you please check the above sample and replicate your issue in the above sample and send back to us, based on that we will check and provide you a better solution quickly. 
 
Regards, 
Sangeetha M 


Loader.
Up arrow icon