Hi Kendo UI Community.
My team and I are currently encountering some difficulty with our implementation of the KendoReact Grid component. Particularly in regards to our implementation of the onColumnResize and onColumReorder functions we pass to the Grid.
A little bit of context: we get our columns from a redux store which we populate with data from a proprietary backend. We wish to maintain the array of columns here so that we can use our existing architecture to send these columns to the backend for serialization.
The problem is that for the onColumnResize function we accept "columns" and "index" as parameters. We use this index as an array index for our columns in redux. Everything works as expected when an end user has not manually reordered the columns. However; once the columns are reordered an orderIndex is applied and it is no longer correct, for the onColumnResize function, to use the "index" parameter as an array index.
We want to avoid using any conditional logic in our onColumnResize function to determine whether we should be accessing the column via the array index or the orderIndex. Ideally the orderIndex would always exist or the columns would come back from Kendo in a sorted array.
Does anyone have any suggestions please?
Thank you in advance for any suggestions, guidance or advice!
Hi,
https://stackblitz.com/edit/react-gmfcy6-5rknaj
In above example I'm using grouping and row selection as well.
Issue is: row selection is not working when grouped. IF you remove grouping `unit in stock` and click on any row it will immediately highlight selected row.
Thanks
Vikram E.
I've category column (contains unique guid) in my data[].
While showing category column in grid, somehow I've managed to show respective category_name instead of category_id at clientside.
I'm using GridColumnMenuCheckboxFilter to show checkbox filter with all possible filterable values.
But all checkboxes in category filter popup shows category_id (which is default behavior), this is not readable to user.
Can I change labels of checkboxes in category filter popup from category (i.e category_id) to category_name.
Hi.
I am trying to implement a detail row in my grid, as shown in this example:
https://www.telerik.com/kendo-react-ui/components/grid/rows/detail/
It works great, but how can I make this editable as well? I need to be able to edit all columns, details as well.
Is this possible? whatever I tried didn't work for me.
Thanks!
Hi,
I'm working on a Kendo React Grid in my application and I'm trying to figure out how to navigate each 'td' (cell) of the grid using tab key. I was able to navigate where i have buttons rendered in a cell (using cell option).
I have followed below example which uses rowRender but it was selecting whole row.
https://stackblitz.com/edit/react-njk8q2-qlvomy?file=app/main.jsx
Is there a way to navigate to each cell of the grid when using tab key?
'kendo' is not defined no-undef
Hello I encounter this error when using the pivot grid using the sample code below
import React from 'react';
import ReactDOM from 'react-dom';
import $ from 'jquery';
import '@progress/kendo-ui';
import { PivotGrid, PivotGridConfigurator } from '@progress/kendo-pivotgrid-react-wrapper';
class PivotGridContainer extends React.Component {
constructor(props) {
super(props);
this.dataSource = new kendo.data.PivotDataSource({
type: "xmla",
columns: [{ name: "[Date].[Calendar]", expand: true }, { name: "[Product].[Category]" }],
rows: [{ name: "[Geography].[City]" }],
measures: ["[Measures].[Reseller Freight Cost]"],
transport: {
connection: {
catalog: "Adventure Works DW 2008R2",
cube: "Adventure Works"
},
read: "https://demos.telerik.com/olap/msmdpump.dll"
},
schema: {
type: "xmla"
},
error: function (e) {
alert("error: " + kendo.stringify(e.errors[0]));
}
});
}
render() {
return (
<div>
<PivotGridConfigurator dataSource={this.dataSource}
filterable={true}
sortable={true}
height={300}>
</PivotGridConfigurator>
<PivotGrid dataSource={this.dataSource}
filterable={true}
sortable={true}
height={550}
columnWidth={200}>
</PivotGrid>
</div>
);
}
}
ReactDOM.render(<PivotGridContainer />, document.querySelector('my-app'));
Hi,
On most examples on telerik site there is a menu to switch between themes but I didn't managed to find some examples on how to actually implement it?
Any help ?
Thanks,
Arnaud.
Do we have any sample or blog for using KendoReact with Recoil.js? I already found one blog post but it never shows the using it with any KendoReact.
https://www.telerik.com/blogs/recoil-in-react