Telerik Forums
Kendo UI for jQuery Forum
3 answers
385 views

Would it be possible to configure how the exported PDF on the Scheduler same as on Grid?

Example: http://dojo.telerik.com/ufOpa  -> click on "Export to PDF".

The PDF is configure as:

toolbar: ["pdf"],
pdf: {
   allPages: true,
   avoidLinks: true,
   paperSize: "Letter",
   margin: { top: "2cm", left: "1cm", right: "1cm", bottom: "1cm" },
   landscape: false,
   repeatHeaders: true,
   template: $("#page-template").html(),
   scale: 0.8
},

 

...which is amazing! That PDFis everything one could wish for.

 

Now, on the Scheduler, if we were to try and "Export to PDF" the data here: http://dojo.telerik.com/IWeCe

...the result would not be a multi-paged, letter-sized PDF, but a single-page PDF containing a cropped section of the Scheduler.

 

I put together a quick POC using the kendo.drawing.drawDOM method, which yielded some results (letter-format, multi page PDF), but it's far from usable.
http://dojo.telerik.com/IWeCe/2  -> Click "PDF me!" on the top of the screen.

 

My question is, can we expect - and if yes, in what timeline - to be able to configure the PDF output on the Scheduler the way we can do it on the Grid?

Thank you in advance!

Vladimir Iliev
Telerik team
 answered on 31 Aug 2016
2 answers
1.2K+ views

Hi,

I'm using angularjs with kendo.ui.

I had created some windows and I use $(".k-window").css("z-index", 25) to set the windows' zindex for my requirement.

The problem was these windows would overlay each other according to the create order in html.

If I focus on one window it should auto toFront other windows.

If I didn't set the index, above problem will not appear since the default toFront function.

How can I do if I want to set the windows' index but the default toFront function will work?

 

ben
Top achievements
Rank 1
 answered on 31 Aug 2016
5 answers
134 views

Hi,

If I reference kendo.all.d.ts without having JQuery definitions loaded, then kendo.all.d.ts has a compile error due to the missing interface JQueryAjaxSettings.
I've added a new file kendo-all-fix.d.ts which contains the interface

interface JQueryAjaxSettings {
// ... full definition copied from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/jquery/jquery.d.ts
}
As I can see, you've provided empty JQuery interfaces in order to make it compile.

I'm using kendo 2016.2.714

Genady Sergeev
Telerik team
 answered on 30 Aug 2016
4 answers
666 views
I implemented drag-and-drop between grids without any problems, but how do you drop into a grid when it is empty? The problem can be reproduced on your demo at http://docs.telerik.com/kendo-ui/controls/data-management/grid/how-to/drag-and-drop-rows-between-two-grids by dragging/dropping each of the rows in one grid to the other grid until all the rows have been moved to the other grid. If you then try to drag/drop a row back to the original (now empty) grid, it won't let you drop into the empty grid.
Brian D
Top achievements
Rank 2
 answered on 30 Aug 2016
1 answer
382 views

I have two question I can't find the answers to;

Based on the following:

 $("#toolbar").kendoToolBar({
                items: [
                    {
                        type: "buttonGroup",
                        id: "FilterControls",
                        buttons: [
                            { id: "const", text: "Construction", spriteCssClass: "k-icon k-i-funnel", togglable: true, group: "filter", toggle: filterToggleHandler},
                            { id: "lease", text: "Leasing", spriteCssClass: "k-icon k-i-funnel", togglable: true, group: "filter", toggle: filterToggleHandler },
                            { id: "legal", text: "Legal", spriteCssClass: "k-icon k-i-funnel", togglable: true, group: "filter", toggle: filterToggleHandler },
                            { id: "propt", text: "Property Management", spriteCssClass: "k-icon k-i-funnel", togglable: true, group: "filter", toggle: filterToggleHandler }
                        ]
                    },
                    
                    { id: "mygreens", type: "button", text: "My Greens", spriteCssClass: "k-icon k-i-funnel", togglable: true, toggle: myToggleHandler },
                    { id: "clear", type: "button", text: "Clear", icon: "funnel-clear", click: filtClearall, togglable: false },
                    { is: "close", type: "button", text: "Close", spriteCssClass: "k-icon k-i-close", click: retOzone, togglable: false },
                ],
            });    

 

First how from the toggle event of the filter group can I tell the state of the mygreens toogle button

and secondly how do I reset the toolbar back to its initial state with no buttons selected, based on the button clear click

Cheers

Thomas
Top achievements
Rank 1
 answered on 30 Aug 2016
1 answer
216 views

Hi have one question. 

I want to change the color of the line(between points) depending on the values on the Y-axis. If the line is below 0 then the line is red color, otherwise the line is  green color

 

 <div kendo-chart
     k-options="chartOptions"
     k-data-source="pctSource"
     style="height: 300px;">
</div>

 $scope.chartOptions = {
            legend: { visible: false },
            seriesDefaults: { type: 'scatterLine' },
            series: [{ xField: "time", yField: "percent", colorField: "userColor", color: "#4572A7" }],
            highlight: {
                border: {
                    opacity: 1,
                    width: 5,
                    color: "black"
                }
            },
            xAxis: {
                max: 120,
                labels: { format: "{0} min" },
                title: { text: "" },
                majorGridLines: {
                    visible: false
                }
            },
            yAxis: {
                max: $scope.pctCharAxisYMaxValue,
                min: $scope.pctCharAxisYMinValue,

                labels: { format: "{0}%" },
                title: { text: "" }
            },
            tooltip: {
                visible: true,
                template: "${dataItem.toolTipLabel}<br/>${dataItem.percent}"
            }
        }

 

 

Eduardo Serra
Telerik team
 answered on 30 Aug 2016
1 answer
6.8K+ views

We provide our users with the ability to define templates for their columns in the KendoTreeList and KendoGrid.  Users also want to be able to execute JavaScript functions from within the template function.  We construct each column dynamically and apply each template (if defined) for each column.

Unfortunately, I'm having difficulty getting it to work.  If I enter the following as the template, I get an error in the kendoOutpot (e.g., "formatFileSize" function doesn't exist):

#= formatFileSize(OV_FILE_VERSION) #

(formatFileSize is a function defined in the same script file in which we create the KendoTreeList and works fine if I call it during document.ready with dummy values.)

Likewise, if I do something like this:

01.#= var formatSize; if (isNan(OV_FILE_SIZE ) == false) {
02.    if OV_FILE_SIZE > 1073741824){
03.        formatSize = parseFloat(OV_FILE_SIZE / 1073741824).toFixed(2) + "GB";
04.    }
05.    else if (OV_FILE_SIZE > 1048576) {
06.        formatSize = parseFloat(OV_FILE_SIZE / 1048576).toFixed(2) + "MB";
07.    }
08.    else if (OV_FILE_SIZE > 1024) {
09.        formatSize = parseFloat(OV_FILE_SIZE / 1024).toFixed(2) + "KB";
10.    }
11.    else
12.        formatSize = OV_FILE_SIZE + "Bytes";
13.}
14.else
15.{
16.    formatSize = OV_FILE_SIZE ;
17.}
18.#
19.  
20.#= formatSize #

I get a JavaScript error (0x800a139e - JavaScript runtime error: Invalid template) in kendo.web.min.js.

What I'm trying to do is format the value to display the correct file size (Unfortunately, I don't have control over the data source so it's got to be formatted on the front end.)

Any ideas what I'm missing?

Boyan Dimitrov
Telerik team
 answered on 30 Aug 2016
2 answers
510 views

Hi I am trying to create breadcrumbs for a treeview.

a came across a JSfiddle http://jsfiddle.net/korchev/nktUe/8/ Which does work but e.node is not allways available especially if the datasource is changed.

 

I was wondering if anyone has had any luck with breadcrumbs on a tree view.

Paul
Top achievements
Rank 1
 answered on 30 Aug 2016
1 answer
116 views
This is regarding bug with Kendo MultiSelect control.
We have updated kendo UI version from 2014.3.1411 to 2016.1.226
Below code was working fine with version 2014.3.1411 for kendo multiselect (It was able to perform below operations)
1. set pre-loaded value in kendo multiselect
2. data filtering while typing in kendo multiselect.

  ms = $(this).kendoMultiSelect({
                itemTemplate: inlineTemplate,
                tagTemplate: tagTemplate,
                delay: 200,
                placeholder: placeHolder,
                minLength: 3,
                maxSelectedItems: maxSelects,
                autoBind: true,
                change: change,
                select: select,
                dataSource: preSelected,
                dataValueField: returnField,
                value: preSelectedObjectSids,
               dataTextField: "DisplayName"               
            }).data("kendoMultiSelect");
    ms.setDataSource(ds);

Now, The above operations has stopped working due to upgrade in its version to 2016.1.226

Tried to set multiselect value i.e. ms.value(preSelectedObjectSids) but it doesn't work.

when i remove  ms.setDataSource(ds) from above code, kendomultiselect holds the pre-loaded value but then it changes the entire datasource to single pre-loaded value. Obviously i cannot search or set any other value further in the multiselect

Is this known issue in latest kendo UI version 2016.1.226?

Could you suggest what i can try to fix this problem?
Georgi Krustev
Telerik team
 answered on 30 Aug 2016
5 answers
332 views

When I'm using Angular Grid I'm getting an error in console  each time the grid loads as "Cannot read property 'removeClass' of null"  .This was getting in the console when I use persist state for grid.

I'm using set options method to set local storage data to grid.

 
  var options = localStorage"departmetsOptions"];
   var response = JSON.parse(options);
   $scope.departmets.setOptions(response);
Here the "setOptions" method is internally calling read method and it is throwing the above exception. Is there any other method to persist the state of grid so that we can avoid this console error.

Please assist to fix the issue.

Konstantin Dikov
Telerik team
 answered on 30 Aug 2016
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
Chat
MultiColumnComboBox
Dialog
DateRangePicker
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Accessibility
Effects
PivotGridV2
ScrollView
Switch
TextArea
BulletChart
Licensing
QRCode
ResponsivePanel
Wizard
CheckBoxGroup
Localization
Barcode
Breadcrumb
Collapsible
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
SmartPasteButton
PromptBox
SegmentedControl
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?