Hello, using Kendo Grid in my react TS app. Using ColumnMenu for filtering, sorting and column selection. This column menu popup closes when click anywhere on this. How can I prevent it closing? Below is my code.
<ColumnMenuContext.Provider
value={{ onColumnsChange, onAutoSize, columnsState, columns }}
>
<PopupPropsContext.Provider
value={({ popupClass, ...props }) => {
const newPopupClass = classNames(popupClass, {
"k-column-menu-tabbed":
popupClass &&
popupClass?.toString().includes("k-column-menu"),
});
return { ...props, popupClass: newPopupClass };
}}
>
<Grid
data={data}
{...dataState}
onDataStateChange={dataStateChange}
total={totalCount}
filterOperators={CONSTANTS.filterOperators}
sortable={true}
pageable={{ buttonCount: 5, pageSizes: [10, 20, 50, 100] }}
ref={gridRef}
resizable
className={loading ? "grid-blurred" : ""}
>
<GridNoRecords>
<EmptyResultsGrid />
</GridNoRecords>
{columnsState.map((c) => (
<Column key={c.id} {...c} width={setWidth(Number(c.width))} />
))}
</Grid>
</PopupPropsContext.Provider>
</ColumnMenuContext.Provider>