首页 > 解决方案 > Exporting a selected row to PDF in react kendo grid

问题描述

I wanted to create a kendo grid in my application using React and was successful in enabling sorting, filtering, pagination etc., as given in the demo.

What I want is to add a button to every row in the grid like Export PDF. On click of that button, it should export only that particular row to PDF. Is this functionality possible? All I have seen till now is exporting all the items to PDF. Kindly help.

标签: reactjskendo-grid

解决方案


I was finally able to achieve this by making use of Editing(Inline) in Kendo React grid- https://www.telerik.com/kendo-react-ui/components/grid/editing/editing-inline/ to add a button to each row and capture the data item selected. Finally I made use of PDF export functionality of Kendo to export only that particular row data to PDF.


推荐阅读