reactjs - 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.
解决方案
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.
推荐阅读
- javascript - 单元测试 Angular 服务
- django - Kubernetes 中的 Django、nginx 和 gunicorn
- php - 使用 Eclipse PDT 进行远程调试
- ios - 第一次反应原生iOS无法打开相机/画廊
- applescript - Applescript - Idein
- javascript - 了解 Eloquent JS 第 3 版中的一个示例
- c# - 将字体字形限制为字体具有的字形
- java - 用中线交换二维矩阵对角线
- c - 在 free(x) 中将 null 值设置为 x(在语言实现中)
- opencv - 提取矩形,放下它并在opencv中旋转图像