Hi David,
Thanks for using Syncfusion products.
Yes, we can change the selection settings dynamically for different grids using selectionSettings property. Please refer to the following code example for your reference,
Code example:
<script>
function buttonClick() {
var gridObj = document.getElementById('FlatGrid').ej2_instances[0];
gridObj.selectionSettings.type = 'Single'; //change the selection settings for particular grid component
}
</script>
|
Also, we can dynamically change the selection type using setProperties method. Please refer to the following code example,
function buttonClick() {
var gridObj = document.getElementById('FlatGrid').ej2_instances[0];//get the grid instance
gridObj.setProperties({ selectionSettings: { type: 'Single' } }, false); //dynamically the change the selection type for particular grid component using set properties method
} |
Regards,
Venkatesh Ayothiraman.