DataGrid onSelect handler

Hi, I have a DataGrid with selectionMode=Multi
I want to have a handler which will get the list of selected item and do some calculation based on the list.
Here is my XML:

<dataGrid id="consoTrxHeadsDataGrid"
                  width="100%"
                  minHeight="20em"
                  dataContainer="consoTrxHeadsDc"
                  columnReorderingAllowed="true"
                  selectionMode="MULTI">
            <actions>
                <action id="create" type="list_create"/>
                <action id="edit" type="list_edit"/>
                <action id="remove" type="list_remove"/>
                <action id="view" type="list_read"/>
                <action id="submitDocument" text="Submit Transactions"/>
            </actions>
            <columns resizable="false">
                <column property="trxNo" header="Transaction No." autoWidth="true"/>
                <column property="trxDate" header="Transaction Date" autoWidth="true">
                    <localDateRenderer format="dd/MM/yyyy"/>
                </column>
                <column property="consoEinvTrxno" header="Consolidated eInvoice Transaction Number" autoWidth="true"/>
                <column property="consoEinvDate" header="Consolidated eInvoice Date" autoWidth="true"/>
                <column property="currencyCode" header="IRBM Currency Code" autoWidth="true"/>
                <column property="consoEinvTrxtype" header="Consolidated eInvoice Transaction Type" autoWidth="true"/>
                <column property="totalIncludeTax" header="Total Include Amount" autoWidth="true" textAlign="END"/>
                <column property="consoType" header="Consolidate Type" autoWidth="true"/>
                <column property="erpModule" header="ERP Module" autoWidth="true"/>
                <column property="erpBranchLocation" header="ERP Branch Location" autoWidth="true"/>
                <column property="status" header="Status" autoWidth="true"/>
            </columns>
        </dataGrid>

The idea is on selection change, will display the total of totalIncludeTax somewhere.
There are some discussions here but I can’t find the SelectionEvent mentioned in the 2.3 documentation.

Best regards,
Amirul Mukminin

Hi!

For now, this listener can only be added programmatically. Declarative declaration will be available with the October release.

Please see related issue:

Best regards,
Dmitriy