This seems to have no effect. I can see the feature is correctly set on the grid, and it creates a ColumnDragToolbar instance:
Screenshot 2022-08-17 at 09.55.33.png (100.19 KiB) Viewed 883 times
But I cannot drag the column headers still, and the toolbar does not appear and the draggable feature does not appear to function. It works if I enable it at the initialisation stage:
If you're not able to reproduce it in our online demo, please provide a runnable test case where we can reproduce the issue. and please also provide a bit more detail on how are you reproducing it.
Good Luck,
Tasnim
Re: [INFO REQ] dynamically updating `columnDragToolbar` does not fully work
Posted: Thu Aug 18, 2022 10:55 am
by dev team
Hi Tasnim,
Thank you for your swift reply. I have put together an example now, which is available here:
Unzip it from the directory downloaded to: unzip grid_columnDragToolbar-example.zip
Navigate to the unarchived directory: cd grid_columnDragToolbar-example
Install packages: npm i
Run: npm run start
Observe the index.html file loaded on https://localhost:3333
Wait 5 seconds for the alert to display, informing the user the feature is now enabled (this is done via setTimeout to simulate the user enabling the feature dynamically.
Observe the draggable toolbars not working.
Observe the console.log displaying the features.columnDragToolbar instance, with disabled: false
Re: [INFO REQ] dynamically updating `columnDragToolbar` does not fully work
Posted: Thu Aug 18, 2022 10:57 am
by dev team
Also worth noting, I have disabled shadow DOM by setting shadow: false in the @Component decorator at the top, but still the same result.
Re: [INFO REQ] dynamically updating `columnDragToolbar` does not fully work
Posted: Thu Aug 18, 2022 11:10 am
by Animal
Features are not dynamic. They are set up at construction time.
Re: [INFO REQ] dynamically updating `columnDragToolbar` does not fully work
Posted: Thu Aug 18, 2022 11:13 am
by Animal
Configure it in with disabled : true, and you can enable and disable it at will.
Re: [INFO REQ] dynamically updating `columnDragToolbar` does not fully work
Posted: Thu Aug 18, 2022 11:16 am
by dev team
Thanks, Animal! I will give that a try. Is that the same with most/all features? I.e. they should be enabled at initialisation then disabled if the user wishes to do so?
Re: [INFO REQ] dynamically updating `columnDragToolbar` does not fully work
Posted: Thu Aug 18, 2022 11:28 am
by Animal
Yes, all Features are instantiated at construct time.
Re: [INFO REQ] dynamically updating `columnDragToolbar` does not fully work