Skip to content

Commit

Permalink
fix reactjs
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanblinov2k17 committed Jan 22, 2025
1 parent c9f1b98 commit 0c3f05c
Showing 1 changed file with 40 additions and 35 deletions.
75 changes: 40 additions & 35 deletions apps/demos/Demos/DataGrid/KeyboardNavigation/ReactJs/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,42 +13,47 @@ import { employees, states } from './data.js';

const allowedPageSizes = [5, 10];
const App = () => (
<DataGrid
dataSource={employees}
keyExpr="ID"
focusedRowEnabled={true}
showBorders={true}
>
<Editing
allowUpdating={true}
allowDeleting={true}
selectTextOnEditStart={true}
useIcons={true}
/>
<HeaderFilter visible={true} />
<FilterPanel visible={true} />
<FilterRow visible={true} />
<Pager
visible={true}
allowedPageSizes={allowedPageSizes}
showPageSizeSelector={true}
showNavigationButtons={true}
/>
<Paging defaultPageSize={10} />
<Column dataField="FirstName" />
<Column dataField="LastName" />
<Column dataField="Position" />
<Column
dataField="StateID"
caption="State"
dataType="number"
<React.Fragment>
<p>
Click this text and press <b>Tab</b>
</p>
<DataGrid
dataSource={employees}
keyExpr="ID"
focusedRowEnabled={true}
showBorders={true}
>
<Lookup
dataSource={states}
valueExpr="ID"
displayExpr="Name"
<Editing
allowUpdating={true}
allowDeleting={true}
selectTextOnEditStart={true}
useIcons={true}
/>
</Column>
</DataGrid>
<HeaderFilter visible={true} />
<FilterPanel visible={true} />
<FilterRow visible={true} />
<Pager
visible={true}
allowedPageSizes={allowedPageSizes}
showPageSizeSelector={true}
showNavigationButtons={true}
/>
<Paging defaultPageSize={10} />
<Column dataField="FirstName" />
<Column dataField="LastName" />
<Column dataField="Position" />
<Column
dataField="StateID"
caption="State"
dataType="number"
>
<Lookup
dataSource={states}
valueExpr="ID"
displayExpr="Name"
/>
</Column>
</DataGrid>
</React.Fragment>
);
export default App;

0 comments on commit 0c3f05c

Please sign in to comment.