Telerik Forums
Kendo UI for jQuery Forum
2 answers
220 views

Hi, 

Im trying to export a grid to PDF but Im constantly having problems with it.

In Chrome
If I import kendo.common.min.css from the kendo cdn, everything works as it should (PDF exported successfully). As soon as I change to my local copy, it fails, complaining that it cannot find "styles/fonts/DejaVu/DejaVuSans.ttf" even though the file IS there.

In IE
Always fails, complaining about "Access is Denied" in the kendo.all.min.js. 

I just updated my kendo files this morning to version 2016.2.714. Unfortunatly I have been unable to duplicate the issue in a Dojo environment so I dont know how to proceed. Please advise.

Kind Regards,
Grant

Antony
Top achievements
Rank 1
Iron
 answered on 07 Dec 2017
1 answer
543 views

Hi,

 

I have the following code fragment

element.grid.bind("excelExport", function (e) {
                e.preventDefault();

                promises[index].resolve(e.workbook);
            })

 

I have an original excelExport function that has all the formatting I need. I'm wondering is it possible to unbind the 2 lines of code so that my excelExport would return to the original state (i.e. has all the formatting I have and without the 2 lines binded above)

 

Regards,

 

Yifan 

Stefan
Telerik team
 answered on 07 Dec 2017
1 answer
382 views

How to see all the selected items?
I only see the last item selected.

Something like this attached image:

 

Ivan Danchev
Telerik team
 answered on 07 Dec 2017
7 answers
825 views

Hi there, 

I've been playing around with the grids built in pdf export functionality and am running into a few issues I was hoping that someone would point out for me. 

I'm aware that there are issues noted on the page to do with this functionality, however the suggested solution to fix crashes in Chrome is to include the pako script 


Which I've done, but still the PDF fails to generate in Chrome. I have (I think) set up the grid correctly, as it works fine in other browsers 

.DataSource(d => d
                             .Ajax()
                             .Read(read => read.Action("_Results_Read","Reports"))
                             .ServerOperation(true)
                             .PageSize(20)
                         )
                         .ToolBar(tools =>
                         {
                             tools.Pdf();
                             tools.Excel();
                         })
     //PDF removed for now until it is patched
                         .Pdf(pdf => pdf
                               .AllPages()
                             .FileName("AsbestosRegister.pdf")
                             .ProxyURL(Url.Action("_GridExportSave", "Reports"))
                         )

​

 

Antony
Top achievements
Rank 1
Iron
 answered on 07 Dec 2017
4 answers
177 views

Hello,

So Grid virtual scrolling is a great concept and allows us to show large amounts of data with good performance. The problem we have is that it couples two unrelated performance bottlenecks into a single pageSize variable on DataSource:

1. Backend/Remote fetch performance and processing.

2. Client side HTML rendering performance.

Generally speaking we can fetch a large number of items from the Backend without hitting any performance bottlenecks. This makes for the most efficient use of bandwidth (smaller HTML request overhead) and a better user experience (don't keep hitting the load bar). The problem is that if we tune a larger value for pageSize to make (1) work better, then suddenly we start hitting Client side rendering bottlenecks in (2).

In an ideal world the pageSize used by the Grid for display virtualization would be an independent value that could be tuned differently to the pageSize of the DataSource. Is there a way to achieve this in the current library?  I was thinking perhaps I could somehow wrap a remote DataSource with pageSize A in a local DataSource with pageSize B, and then set the local DataSource on the grid.

 

thanks,

Rowan

Umair
Top achievements
Rank 1
 answered on 07 Dec 2017
3 answers
529 views
I have a panelBar with expandMode 'single'. Can I make it collapse when I click on a expanden item.
I want my user to be abel to collapse all items.
Nencho
Telerik team
 answered on 06 Dec 2017
4 answers
665 views

Hi,

I have 2 questions about Tooltips in Date Picker control:

1.) I blocked some dates with the function of "DisableDates" .
Now, I want to add a tooltip with an error message when the user hovers over the limited dates.
(The allowed dates can remain with the default toolip which dispays their date).

Here is my DatePicker :

 @(Html.Kendo().DatePicker()

                           .HtmlAttributes(new { id = "date1" })
                           .Format("dd/MM/yyyy")
                           .Culture("en-GB")
                           .DisableDates("DisableDatesFunc"))

I tried to find the navigation event between dates as I saw in another post (in the context of a kendo-calendar control) :

   $("#datePicker1").kendoDatePicker({
            navigate: function(e){
                this.element.find("tbody").find("a").removeAttr("title");
            }
        });

But, it didn't work.....

How can I make this customization?

 

2.) I want to add a main tooltip when the user hovers over the icon of the Date Picker, before the control is opened.

What is the best way to do this?

I'll be glad to receive your help,
Elad.

Viktor Tachev
Telerik team
 answered on 06 Dec 2017
26 answers
1.7K+ views
I am late binding the schedule data and would like to get the start and end date of the current view in jquery, in particular the month view.
Acquiring the focused date works and at a push I could grab data a month wither way, but ideally I would just like to get data for current view
var scheduler = $("#divHistorySchedule").data("kendoScheduler");
-- works
alert(scheduler.Date());
-- fails
alert(scheduler.StartTime);
Thanks,
Lee
Ivan Danchev
Telerik team
 answered on 06 Dec 2017
11 answers
3.7K+ views
Hi,

I'm using Kendo with ASP .NET Web Forms.
I can see that handling the filter generated parameters of a grid with serverFiltering=true is so complex.
The autogenerated params are something like that:

http://127.0.0.1:81/Service.svc/GetAssetsJSONP?take=50&skip=0&page=1&pageSize=50&filter[filters][0][field]=ModelsModelCodeAS&filter[filters][0][operator]=eq&filter[filters][0][value]=kjkjkjjk&filter[filters][1][field]=ModelsModelCodeAS&filter[filters][1][operator]=eq&filter[filters][1][value]=dfsdfsd&filter[filters][2][logic]=and&filter[filters][2][filters][0][field]=ModelsModelNameAS&filter[filters][2][filters][0][operator]=eq&filter[filters][2][filters][0][value]=fdfsdfsdf&filter[filters][2][filters][1][field]=ModelsModelNameAS&filter[filters][2][filters][1][operator]=eq&filter[filters][2][filters][1][value]=fdsfdsfsdfsd&filter[logic]=and

How am I supposed to deal with this on server side? Please Kendo clarify this.

Thanks,
Bilal
Xi
Top achievements
Rank 1
 answered on 05 Dec 2017
13 answers
3.0K+ views
I have been trying, for several days, to write HTML/JQuery that calls my ASP.Net MVC Controller and populates the DataSourceRequest structure properly. No matter what I tried, the values in the request for Filters and Sorts were null even though the paging information was present. I consulted the documentation and I found this unhelpful information in the DataSource documentation.

type String
Loads transport with preconfigured settings. Currently supports only "odata" (Requires kendo.data.odata.js to be included).

Eventually I gave up and did, with hindsight what I should have done first, and that was to write a small test case using the helpers to see what it generated. And lo and behold MAGIC. If the type: attribute of the dataSource is set to aspnetmvc-ajax the DataSourceRequest fields are magically populated. So a code snippet is:
$("#grid").kendoGrid({
    dataSource: {
        type: aspnetmvc-ajax,
...
    }
})
Now I am going to have a little gripe. A year ago i started using the Telerik Controls for ASP.Net and I was blown away by them - they were awesome and, for the most part I found the support pretty good. Because I was so impressed as I migrated to MVC I decided to move to Kendo UI because it seemed to be a very clean interface and I had been impressed by the earlier controls.

But it has proven to be a disaster. The product is inherently brilliant. But it's clearly not finished and, if you are like me, and work alone, it can be a nightmare solving each problem as it occurs one at a time. I'd like to say the forums help, and sometimes they do, but there are a depressing number of posts that have one of the following characteristics.
  1. They go unanswered for weeks, if not months - in fact it is not uncommon to see a follow up a week or so later by the original poster about how they eventually circumvented the problem.
  2. A Telerik employee posts nothing but a link to the documentation. The documentation is dreadful. It follows in the path of Microsoft documentation by which I mean if you already know the answer, or at least where to find the answer, it often answers your question. But if you have a "Where do I start with this?" type of question it is generally hopeless.The examples are like most examples in most books,- that is they are fairly simple and most of what developers do isn't simple. And the tricky parts are never answered.
As I suggested in a post several weeks ago, Telerik needs to commission someone like APress to write a book about Kendo UI so that someone who enjoys writing and explaining things can write some good documentation. I'd buy that book, or even better, I'd subscribe to an online version of it that was kept up to date as bugs were fixed and features added. Most developers, myself included, hate writing documentation and, in general, we are not good at it. 

Anyway, there are my two roubles worth - overall, I love the product, but it has made this project I am working on very late. I wish I had stuck to regular ASP.Net with Telerik. But in the end I hope the pain will have been worth it.

Xi
Top achievements
Rank 1
 answered on 05 Dec 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
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
ContextMenu
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
DateTimePicker
RadialGauge
ArcGauge
AICodingAssistant
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?