Grid
A subclass of React.Component.
Represents the KendoReact Grid component.
class App extends React.Component {
constructor(props) {
super(props);
this.state = {
data: [
{ 'foo': 'A1', 'bar': 'B1' },
{ 'foo': 'A2', 'bar': 'B2' },
{ 'foo': 'A3', 'bar': 'B2' }
]
};
}
render() {
return (
<Grid
data={this.state.data}
reorderable={true}
>
<GridColumn field="foo" />
<GridColumn field="bar" />
</Grid>
);
}
}
ReactDOM.render(<App />, document.querySelector('my-app'));
Name | Type | Default | Description |
---|---|---|---|
columns |
|
A getter of the current columns. Gets the current column width or current columns, or any other
| |
element |
|
Returns the HTML element of the Grid component. | |
props |
|
The props of the Grid component. |
Methods
fitColumns | ||||||
---|---|---|---|---|---|---|
Method to fit columns according to their content. | ||||||
|
scrollIntoView | ||||||
---|---|---|---|---|---|---|
Method to allow the scroll to be set to a specific row index when the Grid is scrollable. It is zero based. | ||||||
|