Telerik Forums
Kendo UI for jQuery Forum
3 answers
510 views

I am trying to export my chart to PDF however the colors are all changed to black. I also have an issue exporting a map where the css filter applied to the map tiles is missing and the map markers are all black instead of orange. I am using css properties to set the colors of the markers and bar chart on the screen. I suspect that they might not be compatible with the method Kendo UI is using to convert html to kendo.drawing.drawDOM. I tried overriding this using:
.k-pdf-export {
    #impactChart g g g path {
        fill: green !important;
    }
}

however this did not work. The chart still rendered as black. 

How do I fix this?

Is there a way to debug without exporting to PDF every time so I can take advantage of Chrome's developer tools?

Is there a list of incompatible CSS properties and workarounds?

Tsvetomir
Telerik team
 answered on 09 Dec 2019
4 answers
957 views

Hi ,

I'm trying to update a ASP .NET application which uses Kendo 2017.2.504 library to 2019.3.1023 by using Visual Studio's Telerik plugin for ASP .NET MVC projects.

The update was seamless. But now some of the padding/margin inside some of the controls seems to have got mis-aligned. Please have a look at the attached pictures before & after the update. I'm using Kendo CDN css & javascript files in my _Layout.chtml file

If I create a new MVC project and use the 2019.3.1023 library to create new screens, this problem is not seen. I tried to walk through the css, but it's very tough to follow. Please let me know how to investigate this problem.

 

Best Regards

 

Achilles

 

Achilles
Top achievements
Rank 1
 answered on 09 Dec 2019
7 answers
747 views
I am facing two different problems when pressing  the export to PDF button external to the Kendo Grid (We are using : kendo.web.min v2015.2.624  and pako_deflate.min 2015.2.624 to enable compression in the PDF - we are using local data)
1- The time it takes to export data to PDF is almost 10 times the excel export for the same set of data.
2- Firefox is giving the warning dialog box (attached) that the script is unresponsive.

thanks
Lee
Top achievements
Rank 2
Bronze
Bronze
Bronze
 answered on 06 Dec 2019
10 answers
933 views
Hi,

I'm using the TabStrip to break up the data I need to submit, and the Kendo client-side validator to perform validation on that data.

If I'm on the 2nd tab and click the form's submit button and there's a piece of data missing from the 1st tab (i.e. it fails validation), how can I "jump back" to the tab with the validation error on? The validator works perfectly, e.g. it stops form submission, displays the error message (when you gp back to the tab manually), I just need to move the user back to the tab with the error message on.

Thank you,

Dan F.
Alon
Top achievements
Rank 1
Veteran
 answered on 05 Dec 2019
1 answer
318 views
I would like to add a title page or a styled title that appears on the first page only to the grid's pdf export. Is there a way to do this?
Ivan Danchev
Telerik team
 answered on 05 Dec 2019
10 answers
1.1K+ views
I don't particularly like how the grid grouping is working, and I'm hoping that I'm just configuring it incorrectly. My use case is for a grid that contains a lot of data (1000s of rows) to allow grouping of columns by dragging to the groups area. I'd like to have client-side paging enabled because there is a lot of data.

The behavior of the grid is strange to me though, because I can only see the groups that apply to the rows currently visible on the page. So if my page size is 20 and my first group has 25 items in it, then I'll just see the one group, even if I minimize it.

Here are a couple of things that I'd expect to happen instead:
  • Some indicator that explains that there are more items that apply to this group on the next page
  • When viewing the next page, some indicator that explains that there are previous items in the same group
  • Upon minimizing the group, I'd expect to see the second group on the first page of results, with its items now visible

Here's a jsfiddle that shows the behavior that I'm currently seeing: http://jsbin.com/joleriva/1/edit
Notice how you see 4 items in the "Foo: 1" group, and if you go to the second page you see one additional item that belongs to that group. If (on the first page) you minimize "Foo: 1" group you don't see anything but the group header and the paging controls.

Like I said, I really hope that I'm just missing some configuration options that will make this work in a more intuitive way.

By the way, I've looked into the Virtual Scrolling with groups, but that has problems of it's own when you minimize a group... http://trykendoui.telerik.com/ivum

Viktor Tachev
Telerik team
 answered on 05 Dec 2019
4 answers
577 views

The drawer widget builds form a list of items similar to menu items.

What would be the proper way to have subitems like nested ul>li>ul>li?

Nikolay
Telerik team
 answered on 05 Dec 2019
4 answers
2.0K+ views

Hello guys.

Basically I'm trying to export my grid to PDF and this works just fine simply reading kendo documentation. But when I open this generated PDF, it looks just like a printscreen to me. What I wanna do is change it, use some kind of custom template (e.g html) or something and beautify this.

I'm only using this lines of code for properly working:

var grid = $("#grid").data("kendoGrid");

kendo.drawing.drawDOM($("#grid")).then(function (group) {
    kendo.drawing.pdf.saveAs(group, "test.pdf");
});

 

Is there some way of doing this? (Changing this generated PDF layout)

Alex Hajigeorgieva
Telerik team
 answered on 05 Dec 2019
2 answers
113 views

Hello,

I want to show multiple events in one day. How to visualizes specific events in daily time basis instead of default yearly time basis? Any help is appreciated.

Thanks!

Shawn
Top achievements
Rank 1
 answered on 05 Dec 2019
1 answer
762 views

I am trying to export my openStreetMap to a PDF but the background (the map) doesn't show up. I see a bunch of errors in the console that are similar to:

Access to XMLHttpRequest at 'https://www.toolserver.org/tiles/bw-mapnik/4/4/6.png' from origin 'https://localhost:44342' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

I have no control over toolserver.org so I can't tell them to add Access-Control-Allow-Origin to their header. Is there a workaround? I'm open to using another map template that offers a black and white map if anyone knows of one that won't give me the cors error. 

Alex Hajigeorgieva
Telerik team
 answered on 04 Dec 2019
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?