Hi,
I have a RadPageView with several RadGrid controls on each page. I am trying to accomplish a few things:
1. Add a CommandItem button but still have the default "refresh" button as well as have the buttons created from CommandItemSettings-AddNewRecordText and ShowExportToPdfButton. Defining a CommandItemTemplate removes these buttons.
2. I want to Hijack the functionality of the CommandItem button created by ShowExportToPdfButton and call my own PDF export method/handler.
3. Since there will be many Grids, how can I hijack each grid's ShowExportToPdfButton and identify which grid to export from the same export method?
Basically, I want a generic way to hijack each Grid's ShowExportToPdfButton or insert into each grid's CommandItem bar a generic exportPDF button that I define.
An add on question is how to find the width of each visible column that is to be exported so that I can set the grid.ExportSettings.Pdf.PageWidth accordingly.
Thanks for any advice.
I have a RadPageView with several RadGrid controls on each page. I am trying to accomplish a few things:
1. Add a CommandItem button but still have the default "refresh" button as well as have the buttons created from CommandItemSettings-AddNewRecordText and ShowExportToPdfButton. Defining a CommandItemTemplate removes these buttons.
2. I want to Hijack the functionality of the CommandItem button created by ShowExportToPdfButton and call my own PDF export method/handler.
3. Since there will be many Grids, how can I hijack each grid's ShowExportToPdfButton and identify which grid to export from the same export method?
Basically, I want a generic way to hijack each Grid's ShowExportToPdfButton or insert into each grid's CommandItem bar a generic exportPDF button that I define.
An add on question is how to find the width of each visible column that is to be exported so that I can set the grid.ExportSettings.Pdf.PageWidth accordingly.
Thanks for any advice.