# Only allow unique grouping in the Grid

## Environment

<table>
	<tbody>
		<tr>
			<td>Product Version</td>
			<td>5.16.1</td>
		</tr>
		<tr>
			<td>Product</td>
			<td>Progress® KendoReact Grid</td>
		</tr>
	</tbody>
</table>

## Description

How can I disable duplicate grouping for the Grid?

## Solution

In the `onGroupChange` event handler, you can check if the newly added group exists in the `group` state variable. In addition, when the group is added, `event.nativeEvent` is undefined. Since the `onGroupChange` event is also responsible to remove groups (in that case `event.nativeEvent` is defined), therefore, set the `group` and `resultState` only when `event.nativeEvent` is defined and `groupExists` equals false.

This is an example demonstrating the implementation:

[Demo Source](https://demos.telerik.com/kendo-react-ui/knowledge-base/grid/unique-groups/source.txt)
