Telerik Forums
Kendo UI for jQuery Forum
9 answers
2.6K+ views

I am trying  to export a long webpage with many grids and charts to a pdf file with multiple pages. I tried to use the forcePageBreak property but this property breaks the generated pdf. Here is the javascript code of the pdf export:

 exportToPdf:function (){

var className = $(this).data('groupname');

$('.'+className).find('.k-grid-excel').hide();

$('.'+className).find('.removeFromReport').hide();

kendo.drawing.drawDOM($("."+className),

{

forcePageBreak: ".page-break",

margin: { left: "1cm", top: "1cm", right: "1cm", bottom: "1cm" },

paperSize: "auto",

landscape: true,

multiPage: true }) .then(function(group) { 

return kendo.drawing.exportPDF(group, { }); }) .done(function(data) {

kendo.saveAs({

dataURI: data,

fileName: "systemReport.pdf",

proxyURL: "//demos.telerik.com/kendo-ui/service/export" });

$('.'+className).find('.k-grid-excel').show();

$('.'+className).find('.removeFromReport').show();

});

}

I will also attach a zip file with the generated pdf with and without the property forcePageBreak.

Is there any other way to achieve the same functionality.

Many thanks in advance

Nisarg
Top achievements
Rank 1
 answered on 10 Feb 2017
2 answers
198 views

I'm using the upload widget in via the MVVM framework, and was wondering if there are any options for me to control the text of the "Select files..." button or specify a drop zone via the data-* attributes. 

If you have any kind of dojo sample for this I would really appreciate it.

Thanks -

Erik

Erik
Top achievements
Rank 2
 answered on 10 Feb 2017
4 answers
140 views

Hi,

http://dojo.telerik.com/IyoVU/6

In this dojo, I'm trying to mix validation tooltips on simple fields, with custom validation on grid columns.  I've used your grid example which validates for the product name beginning with a capital.  Run the example, add a row to the grid, enter a product name that is invalid, e.g. "a" and tab off.  The product validation tooltip message is not shown, when I think it should be.  What am I doing wrong?

 

Thanks,

 

Scott

Stefan
Telerik team
 answered on 10 Feb 2017
3 answers
557 views

Hello Telerik,

 

I have a problem with the kendo.saveAs() because the server, where the binary files come from, requires an 'Authorization' in the request headers.

I have been looking for an answer but all I found was that the question was asked before, by somebody else, on StackOverflow: http://stackoverflow.com/questions/41406918/kendo-server-export-post-request-headers

But no useful answer was given so i pop the question here because I do need an answer for this :(

 

Best regards,

 

Insad

Boyan Dimitrov
Telerik team
 answered on 10 Feb 2017
3 answers
164 views

Hi,

I'm trying to display a partial view in a treelist column 

This is the colum definition:

columns.Add().Field(e => e.PageID)
                .TemplateId("translation-template")                 
                .HtmlAttributes(new { @class = "center col-lg-2" });

 

In this codesnippit, the PageID in the first div is displayed correctly for each row in my treelist.

Now I want to use the #: PageID # to be pass into the Html.RenderAction as a parameter (instead of 4)

<script id="translation-template" type="text/x-kendo-template">
        <div>#: PageID #</div>
        <div>
            @{Html.RenderAction("_TranslationTemplate",
                         "Pages",
                          new { PageID = 4 });
                }
        </div>
    </script>

 

Thank you!

Boyan Dimitrov
Telerik team
 answered on 10 Feb 2017
2 answers
156 views

Hello

I am trying to use Angular Kendo UI Tooltup within the Kendo Validator's errorTemplate but tooltip does not seem to work. Is this supported?

See example http://dojo.telerik.com/IDamo/12

Thanks

 

 

 

James
Top achievements
Rank 1
 answered on 10 Feb 2017
1 answer
132 views

Defining a non-empty optionLabel breaks keyboard navigation when ARIA or JAWS is used.

See the example at http://dojo.telerik.com/@richm/OLumO.  Using Chrome and ARIA, I focus the dropdown and press Alt-DownArrow to open the list.  Pressing down arrow again should begin to navigate within the list, but instead ARIA announces "blank" and further down arrow keypresses seems to move navigator seems to move around the HTML document and the dropdown closes.  JAWS behaves similarly.

This does not occur if ARIA or JAWS is not running.

Any help appreciated - thanks.

 

Veselin Tsvetanov
Telerik team
 answered on 10 Feb 2017
2 answers
1.8K+ views

Hello all,

I am looking for the css class that I can use to override the "v" icon that is shown to the right of a Kendo DropDownList.  If I can't replace the icon itself, I'll settle for changing the color of it. 

 

For what it's worth, here's my dropdownlist:

var facilityList = Html.Kendo().DropDownList()
.Name("facilityList")
.HtmlAttributes(new { style = "width: 200px;" })
.Items(items =>
{
foreach (var item in Model.Facilities.Values)
{
items.Add().Text(item.Name).Value(item.Id.ToString());
}
});

 

 

Ivan Danchev
Telerik team
 answered on 10 Feb 2017
1 answer
116 views

Hello, I'm new to Kendo and can't find the solution of my problem. 

I've a grid with local data and want to add new records. Thats fine so far. But when I start to scroll chrome says: RangeError: Maximum call stack size exceeded. I think something is missing in my grid configuration.

http://jsbin.com/tozixeroxo/1/edit?js,output

 

thank you

Patrick | Technical Support Engineer, Senior
Telerik team
 answered on 09 Feb 2017
1 answer
1.0K+ views

Hello,

We're trying to find a way to setup a data grid that has locked columns but also has the column widths decided by the content of the cells.  When switching the grid from the default Scrollable true, to false, we get the auto table layout but lose the locked columns.  Is there a way to have both?  We're trying to avoid setting specific widths for each column in the grid.

Thanks

Patrick | Technical Support Engineer, Senior
Telerik team
 answered on 09 Feb 2017
Narrow your results
Selected tags
Tags
Grid
General Discussions
Charts
Data Source
Scheduler
DropDownList
TreeView
MVVM
Editor
Window
DatePicker
Spreadsheet
Upload
ListView (Mobile)
ComboBox
TabStrip
MultiSelect
AutoComplete
ListView
Menu
Templates
Gantt
Validation
TreeList
Diagram
NumericTextBox
Splitter
PanelBar
Application
Map
Drag and Drop
ToolTip
Calendar
PivotGrid
ScrollView (Mobile)
Toolbar
TabStrip (Mobile)
Slider
Button (Mobile)
Filter
SPA
Drawing API
Drawer (Mobile)
Globalization
LinearGauge
Sortable
ModalView
Hierarchical Data Source
Button
FileManager
MaskedTextBox
View
Form
NavBar
Notification
Switch (Mobile)
SplitView
ListBox
DropDownTree
PDFViewer
Sparkline
ActionSheet
TileLayout
PopOver (Mobile)
TreeMap
ButtonGroup
ColorPicker
Pager
Styling
MultiColumnComboBox
Chat
DateRangePicker
Dialog
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Effects
Accessibility
PivotGridV2
ScrollView
BulletChart
Licensing
QRCode
ResponsivePanel
Switch
Wizard
CheckBoxGroup
TextArea
Barcode
Breadcrumb
Collapsible
Localization
MultiViewCalendar
Touch
RadioButton
Stepper
Card
ExpansionPanel
Rating
RadioGroup
Badge
Captcha
Heatmap
AppBar
Loader
Security
TaskBoard
Popover
DockManager
FloatingActionButton
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
TimePicker
BottomNavigation
Ripple
SkeletonContainer
Avatar
Circular ProgressBar
FlatColorPicker
SplitButton
Signature
Chip
ChipList
VS Code Extension
AIPrompt
PropertyGrid
Sankey
Chart Wizard
OTP Input
SpeechToTextButton
InlineAIPrompt
StockChart
ContextMenu
DateTimePicker
RadialGauge
ArcGauge
AICodingAssistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?