@@ -339,10 +337,10 @@ export default function App() {
width="95%"
height="500px"
pivotConfiguration={pivotConfiguration}
- valueInit={onValueInit}
+ onValueInit={onValueInit}
superCompactMode={true}
- columnSelection={GridSelectionMode.Single}
- cellSelection={GridSelectionMode.Single}
+ columnSelection="single"
+ cellSelection="single"
>
diff --git a/samples/grids/tree-grid/state-persistence-about/src/index.tsx b/samples/grids/tree-grid/state-persistence-about/src/index.tsx
index 1b676f6de..193e2027a 100644
--- a/samples/grids/tree-grid/state-persistence-about/src/index.tsx
+++ b/samples/grids/tree-grid/state-persistence-about/src/index.tsx
@@ -1,7 +1,7 @@
-import React, { useEffect, useState } from 'react';
+import React from 'react';
import ReactDOM from 'react-dom/client';
-import { ButtonVariant, IgrButton } from 'igniteui-react';
+import { IgrButton } from 'igniteui-react';
import 'igniteui-react-grids/grids/themes/light/bootstrap.css';
import './index.css';
@@ -17,8 +17,8 @@ export default function App() {
By default navigating to the previous page, components will reinitialize as per their initial configuration, therefore the IgrTreeGrid will lose its state.
- What our App Component does is reading the state from the window.localStorage object and applying the corresponding state in the `useEffect`` hook.
- Go Back
+ What our App Component does is reading the state from the window.localStorage object and applying the corresponding state in the `useEffect` hook.
+ Go Back
diff --git a/samples/grids/tree-grid/state-persistence-main/src/index.tsx b/samples/grids/tree-grid/state-persistence-main/src/index.tsx
index cb38fe7c3..0d7234385 100644
--- a/samples/grids/tree-grid/state-persistence-main/src/index.tsx
+++ b/samples/grids/tree-grid/state-persistence-main/src/index.tsx
@@ -2,10 +2,8 @@ import React, { useEffect, useRef, useState } from "react";
import ReactDOM from "react-dom/client";
import {
- FilterMode,
IgrActionStrip,
IgrColumn,
- IgrGridModule,
IgrGridPinningActions,
IgrGridToolbar,
IgrGridToolbarActions,
@@ -14,16 +12,13 @@ import {
IgrPaginator,
IgrGridState,
IgrGridStateOptions,
- GridSelectionMode,
IgrTreeGrid,
} from "igniteui-react-grids";
import {
IgrButton,
IgrCheckbox,
- IgrCheckboxModule,
IgrCheckboxChangeEventArgs,
IgrIcon,
- IgrIconModule,
} from "igniteui-react";
import { registerIconFromText } from "igniteui-webcomponents";
@@ -32,9 +27,6 @@ import "igniteui-react-grids/grids/themes/light/bootstrap.css";
import "./index.css";
import { EmployeesNestedData } from "./EmployeesNestedData";
-const mods: any[] = [IgrGridModule, IgrIconModule, IgrCheckboxModule];
-mods.forEach((m) => m.register());
-
const restoreIcon =
'