This is a migrated thread and some comments may be shown as answers.

Exporting with proxy enabled with additional parameters as input

1 Answer 229 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Srinivas
Top achievements
Rank 1
Srinivas asked on 02 Jun 2017, 02:20 PM

Hello,

I have the below Use Case where:

I need to pass the application specific parameters to the server with proxy enabled.

Below is the sample code that has the proxyParameters. Using these proxyParameters I would be processing the pdf document on the server.

$("#editor").kendoEditor({
     tools: ["pdf"],
     pdf:{
  filename: "MyDocument.pdf",
  proxyURL: "/myProxyURL",
  proxyParameters: myParameter,
  forceProxy: true,
  paperSize: "auto"
     },
  pdfExport:function(e){
  e.preventDefault()
  }
});

Could you please help?

1 Answer, 1 is accepted

Sort by
0
Ianko
Telerik team
answered on 05 Jun 2017, 11:54 AM

Hello Srinivas,

The same topic is discussed in a support ticket. If you have further question, please, let us continue the conversation there.

For anyone else interested in the topic here, the one suggestion is the kendo.saveAs method to be overridden with custom logic that applies the parameters needed. The original code that sends the request is available here: https://github.com/telerik/kendo-ui-core/blob/master/src/kendo.core.js#L4253

This can be also posted as a feature request in out feedback portal (http://kendoui-feedback.telerik.com/forums/127393-kendo-ui-feedback). Everybody who needs such or similar functionality is encouraged to place a vote, post a comment or create a new request (if similar does not exist) in the feedback portal.

Regards,
Ianko
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Editor
Asked by
Srinivas
Top achievements
Rank 1
Answers by
Ianko
Telerik team
Share this question
or