Our blazing fast Grid component built with pure JavaScript


Post by fcoca@certinia.com »

Hi,

Re this post: viewtopic.php?t=21750

Is the API Grid.view.GridBase#function-setConfig still supported? I can not find any documentation about it.

Which is the supported way to show/hide the selection checkbox on runtime?

Regards


Post by johan.isaksson »

Hi,

To show/hide the checkbox selection column at runtime, change selectionMode.checkbox:

grid.selectionMode.checkbox = false;

Used in this demo https://bryntum.com/products/grid/examples/selection/

https://bryntum.com/products/scheduler/docs/api/Core/Base#function-setConfig is still supported, you have probably docs configured to not show advanced apis:

Screenshot 2024-01-31 at 09.23.12.png
Screenshot 2024-01-31 at 09.23.12.png (78.5 KiB) Viewed 294 times
Best regards,
Johan Isaksson

Post by johan.isaksson »

I see the docs for selectionMode are short on info about that, we will remedy that (issue opened https://github.com/bryntum/support/issues/8402)

Best regards,
Johan Isaksson

Post by fcoca@certinia.com »

Thanks!
Which approach is recommended, using the https://bryntum.com/products/scheduler/docs/api/Core/Base#function-setConfig or direct update of the property.

Regards


Post by johan.isaksson »

Both should work, I'd recommend direct update of the property for ease of use. It is fairly new, so please let us know if you run into any issues with it

Best regards,
Johan Isaksson

Post Reply