KendoUI Grid Export just the table to PDF - kendo-ui

I have a KendoUI Grid I want to export to PDF, but the built in export functionality exports the complete element, including styles, toolbars, and navigation buttons.
Is it possible to just export the data, in a plain old table? The Excel export functionality does something similar already, just exporting the data.
Or would I have to hide all other elements and remove all the styles manually?

Related

Export Dropdown Selection in Kendo Editor to Word Document

I've been trying to get a selected dropdown option to appear in a Word Document on export.
The current default behavior is that all option tags appear in the exported document with no indication of which was selected. (This makes sense that this behavior would occur since the export function is simply exporting all the html as plain text).
So far, these are the approaches I've tried (none of which work):
-Capture the export event before it is sent to the controller via the javascript execute event (thus being able to strip out any unwanted text). The issue is the execute event and exportas event are asynchronous, so I can't modify the file before the export event call is executed.
-Modify the text on the controller side before it is converted to a Word document and downloaded (the text is sent through without special characters, which makes it nearly impossible to parse)
-Attempt to replace the dropdown with a kendo autocomplete widget (this would also be an acceptable solution). The widget does not render properly inside the document. All of the datasource options are there and even filters corretly, but it does not style correctly or open.
Has anyone else been able to find a solution to this problem or have another approach I could use?
EDIT:
As per requested, here is a screenshot of the base code:
My initial idea on how you could accomplish this:
1. Pull that select list out of your editor.
2. Bind an event handler to the change event of your list to add the value of your list into the editor. Are you using JQuery in your project? It's a dependency for Kendo so this ought to work:
$("#selectListId").on("change", function () {
$("#editor").val( $("#selectListId").val());
});
In reality though I'm guessing this approach will be used to populate some template of text with values selected by the user? In that case, you may want to save the template first before applying the value selected.
Now that you've identified you need that dropdown menu to be usable on the exported word document, attempt the following:
Create a new word document.
In that word document, open the Developer tab. (If you don't know about it, google how to enable it)
Insert a new Dropdown Menu Content Control using the Developer tab.
Select this content control, then open Properties menu item on Developer tab.
Update the content control with your values:
Save this word document.
Use the Kendo Editor Import to import this document containing your template.
Attempt exporting what was just imported.
If that works and the editor has editable dropdowns from that content control, I will be very surprised... Good luck!

How Export an Editable Chart with content to PPT and Excel

I have a work request to export an editable chart to power point.
I have seen this type of implementation in myworkday.com website, where when you click a button, the chart is exported to power-point.
now the power-point gets opened. See the below image.
If you check below, i have edited an group, please let us know if any chart library is there with editable export facility.
You can use PptxGenJS JavaScript library which will satisfy your requirements.PptxGenJS

Kendo Grid Footertemplate export to Excel

I have a Kendo UI Grid with footertemplate. The grid is all working fine, but if I want to export it to Excel, I also want the footertemplate to be included but in different rows. How can I make the footer in Excel to be on different rows like the grid? Thanks for the help.
ex.
If I have footertemplate with Table and 2 TR, then I export to excel I want it to 2rows. Currently it combines everything on a single cell.
I'm just new on using this site so I cannot upload any image yet.

Kendo UI Grid Export to excel with extra info in the file?

I have an application which uses Kendo UI grid. The excel export features works fine. Now, I added some extra controls on the page. User can select some values, and then click 'refresh' button to update the data source of the grid. So that the grid won't load too much data all in once.
The question is: the export will export whatever on the screen (including all pages). When user opens the excel file, he/she won't know what parameters used to generate this.
For example, on the page, it has a date control, use select 1/1/2015, click refresh, grid shows all data for that date. When export, how the user know this selected date? It is not in the columns in grid.
What I want to have is an extra row at the top, which shows something like:
Date: 1/1/2015, Para2: value2, ...
Is this possible in current Kendo ui grid? or have to manipulate the excel file (which we want to avoid at any cost)?
Thanks
we can use mult-column feature of latest kendo to add one more row at the top and covers all existing columns, and use it for extra information.
http://demos.telerik.com/kendo-ui/grid/multicolumnheaders
However, I need to dynamically change the title of this row, i.e. when user select a parameter from drop down list, I need to reflect the change in the title. This can be done by jQuery. The problem is Export of Kendo. The export seems using whatever the initial title is. i.e. if I change parameters to:
Date: 2/1/2015, Para2: value2, ...
jQuery changed the title in this multi-column row. But the export still has:
Date: 1/1/2015, Para2: value2, ...
Anyone knows how to fix this? Or, can't be done in current Kendo?
Thanks

don't want to edit the data in the kendoUI editor

I am using kendoui editor.I am loading the data in the editor.I want to make this readable only.make it as non editable.how can i make the data inside the editor as non-editable.
Why are you using an editor to show read only data?
Why not create a separate underneath the KendoUI Editor and use that for read-only information.
Then you can toggle the visibility between the editor and div as needed.

Resources