Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
150507 | Jan 9,2020 09:31 AM UTC | Jan 10,2020 10:31 AM UTC | React - EJ 2 | 1 |
![]() |
Tags: Grid |
export class App extends React.Component {
grid;
settings = { type: 'Multiple' };
rowSelected = (args) => {
var count = this.grid.getSelectedRecords().length;
document.getElementById('grid_Selected Record Count').innerText = 'Selected Record Count' + ' = ' + count
}
rowDeselected = (args) =>{
var count = this.grid.getSelectedRecords().length;
if( count == 0 ){
document.getElementById('grid_Selected Record Count').innerText = 'Selected Record Count' + ' = ' + count
}
}
render() {
this.toolbarClick = this.toolbarClick.bind(this);
return (
<div>
<GridComponent id='grid' dataSource={data} toolbar= {[{id: 'Selected_Record_Count', text:'Selected Record Count'}]} rowSelected={this.rowSelected} rowDeselected = {this.rowDeselected}
toolbarClick={this.toolbarClick} selectionSettings={this.settings} ref={g => this.grid = g}>
</GridComponent>
</div>
);
}
}
|
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.