• What is KendoReact
  • Getting Started
  • Server Components
  • Components
    • Animation
    • Barcodes
    • Buttons
    • Chartsupdated
    • Common Utilities
    • Conversational UIupdated
    • Data Gridupdated
    • Data Query
    • Data Tools
    • Date Inputs
    • Date Math
    • Dialogs
    • Drawing
    • Dropdownsupdated
    • Editor
    • Excel Export
    • File Saver
    • Formupdated
    • Ganttupdated
    • Gauges
    • Indicators
    • Inputsupdated
    • Labels
    • Layoutupdated
    • ListBoxupdated
    • ListView
    • Map
    • Notification
    • OrgChartnew
    • PDF Processing
    • PDFViewer
    • PivotGrid
    • Popup
    • Progress Bars
    • Ripple
    • Scheduler
    • ScrollView
    • Sortable
    • Spreadsheetupdated
    • TaskBoard
    • Tooltips
    • TreeList
    • TreeViewupdated
    • Upload
  • Sample Applications
  • Styling & Themes
  • Common Features
  • Project Setup
  • Knowledge Base
  • Changelog
  • Updates
  • Troubleshooting

GridToolbar

A subclass of React.Component.

Represents the GridToolbar component.

class App extends React.Component {
   state = {
      data: [
           {'Column1':'A1', 'Column2':'A2'},
           {'Column1':'B1', 'Column2':'B2'},
           {'Column1':'C1', 'Column2':'C2'}
       ]
   }

   customClick = () => {
       alert("Custom handler in custom toolbar");
   }
   render() {
       return (
          <Grid data={this.state.data}>
               <GridToolbar>
                   <button
                       title="Click"
                       className="k-button k-primary"
                       onClick={this.customClick}
                   >Click
                   </button>
               </GridToolbar>
           </Grid>
       );
   }
}
ReactDOM.render(
   <App />,
   document.querySelector('my-app')
);
NameTypeDefaultDescription

props

Readonly<GridToolbarProps>

The props of the GridToolbar component.

In this article

Not finding the help you need?