@@ -494,7 +494,6 @@ export const App = () => {
494494
495495 let columns = gridInstance . getColumns ( ) ;
496496 let commandColumn = columns . find ( col => col . headerText === 'Commands' ) ;
497- let columnCheckbox = columns . find ( col => col . type === 'checkbox' ) ;
498497
499498 setDropdownValues ( ( prev ) => {
500499 if ( selectedListItemRef . current === "Selection Settings" ) {
@@ -510,7 +509,7 @@ export const App = () => {
510509 if ( prev . editmode === 'Batch' && commandColumn ) {
511510 commandColumn . visible = false ;
512511 gridInstance . refreshColumns ( ) ;
513- gridInstance . toolbar = gridProperties . toolbarOptions ;
512+ gridInstance . toolbar = gridProperties . toolbarOptions . filter ( item => item !== 'Edit' ) ;
514513 }
515514 }
516515 else if ( selectedListItemRef . current === "Filter Settings" ) {
@@ -569,7 +568,7 @@ export const App = () => {
569568 if ( ( ! prev . editing || ! prev . deleting ) && commandColumn ) {
570569 commandColumn . visible = false ;
571570 gridInstance . refreshColumns ( ) ;
572- gridInstance . toolbar = ! prev . deleting ? gridProperties . toolbarOptions . filter ( item => item !== 'Delete' ) : gridProperties . toolbarOptions ;
571+ gridInstance . toolbar = gridInstance . editSettings . mode === 'Batch' ? gridProperties . toolbarOptions . filter ( item => item !== 'Edit' ) : ! prev . deleting ? gridProperties . toolbarOptions . filter ( item => item !== 'Delete' ) : gridProperties . toolbarOptions ;
573572 } else if ( gridInstance . editSettings . mode !== 'Batch' && prev . editing && commandColumn ) {
574573 commandColumn . visible = true ;
575574 gridInstance . refreshColumns ( ) ;
@@ -1068,7 +1067,15 @@ export const App = () => {
10681067
10691068
10701069 settingsDialogTemplate : ( ) : JSX . Element => {
1071-
1070+ const dialogContainers = document . querySelectorAll ( '#example_dialog' ) ;
1071+ // If more than one instance exists, skip rendering and return settings icon.
1072+ if ( dialogContainers . length > 1 ) {
1073+ return (
1074+ < div style = { { marginTop : '4px' } } >
1075+ < span style = { { fontSize : '16px' } } id = "walk_property_settings" className = 'e-icons e-settings icon' > </ span >
1076+ </ div >
1077+ ) ;
1078+ }
10721079 return (
10731080 < div style = { { marginTop : '4px' } } >
10741081 < span style = { { fontSize : '16px' } } id = "walk_property_settings" className = 'e-icons e-settings icon' > </ span >
0 commit comments