QueryViewer AllowSelection property

Official Content
This documentation is valid for:
Keeps an item (and the related items) selected once the user has clicked on it.

Syntax

control. AllowSelection

Values

False
True

Description

This property allows keeping an item selected once the ItemClick event has been raised. It may be useful when a visual feedback is required after a mouse click.

It's valid for all the output types in the Query Viewer except Card and Gauge Charts.

The first click over an item selects it, and all the items related to the clicked item will be selected to. An additional click on it deselects it.

There is a default color for the selection but you can change it through the Selection Color property in the associated Theme.

You can inspect the &ItemClickData variable when processing the ItemClick event to check if the value you've just clicked has remained selected or not.

 

Run-time/Design-time

This property applies both at run-time and at design-time.

Samples

Chart

AllowSelectionChartQueryViewer

Table

AllowSelectionTableQueryViewer

Pivot Table

AllowSelectionPivotTableQueryViewer

How to apply changes

To apply changes made by this property, do a Build with this Only of the object.

Availability

This property is available since GeneXus 16 upgrade 4.

Scope

Platforms: Web(.Net, .Net Core, Java)
Controls: QueryViewer

See Also

QueryViewer SelectionColor property

ItemClick Event