Greetings,
I am using Kendo UI pivot grid version: @progress/kendo-react-pivotgrid": "^6.1.1
I am using the usePivotLocalDataService() function for local data binding. I am rendering the default row and default column axes dynamically.
I am toggling the views calling this usePivotLocalDataService() for each different view. Its updating the data field dynamically but not updating columnAxes and rowAxes. I even passed it dynamically through props, but it was displaying the same column and row axes, i.e., maped initially.
Here is the code:
<PivotGridContainer>
<PivotGrid
className={`pivot-table-container3`}
{...pivotProps}
row={CustomRow}
rowAxes={rowAxis.current}
columnAxes={colAxis.current}
cell={(props: any) => (
<CustomCell2
{...props}
myFunc={myFunc}
tableLabel={tableLabel}
page={tableType}
views={views}
/>
)}
ref={pivotgrid}
style={{
// height: state.loading ? 350 : undefined,
maxHeight: 500,
}}
/>
{show && <PivotGridConfigurator {...configuratorProps} />}
<PivotGridConfiguratorButton onClick={handleButtonClick} />
{state.loading && <Loader />}
</PivotGridContainer>