Completed
Last Updated: 26 Jun 2019 14:05 by ADMIN
Antonios
Created on: 24 May 2019 15:36
Category: KendoReact
Type: Feature Request
0
dynamic expandField property on Grid

It would be really useful to have the expandField Grid property being a function that dynamic (per row) return the attribute or null if the row cannot be expanded altogether.

The reason is that, not all rows are expandable in some situations but we currently cannot hide the toggle detail row (+) per row...

2 comments
Antonios
Posted on: 28 May 2019 13:27
Thank you Stefan, I think that should work. Great idea to use a custom cell for it!
ADMIN
Stefan
Posted on: 27 May 2019 10:13
Hello, Antonios,

If the ultimate goal is to modify the expand collapse column, I suggest that we provide a render function for that column.

Also, this can currently be achieved with a custom column.

Create a custom column bound to the expanded field and show the icons conditionally:

https://www.telerik.com/kendo-react-ui/components/grid/api/GridColumnProps/#toc-cell

https://www.telerik.com/kendo-react-ui/components/grid/api/GridColumnProps/#toc-headercell

I have made an example demonstrating this:

https://stackblitz.com/edit/react-abh1id-pwtfuf?file=app/main.jsx

Let me know if this is helpful.

Regards,
Stefan
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items