Telerik Forums
Kendo UI for jQuery Forum
1 answer
2.4K+ views

I'm getting the following error when trying to call the method .saveAsExcel(): "Unable to get property 'length' of undefined or null reference"

Here is code:

$(".download-excel").on("click",
    function() {
        try {
            var grid = $("#DataGrid").data("kendoGrid");
            grid.saveAsExcel();
        } catch (e) {
            fnDialog('Error Exporting Excel',
                'There was an error exporting the excel document. Please contact customer service.',
                null,
                null);
        }
    });

 

If I set a watch on the grid object, I can see the data. For some reason it fails at the grid.saveAsExcel();

Stefan
Telerik team
 answered on 09 Feb 2017
2 answers
1.1K+ views

Hi.

I manged to enable horizontal scrolling as shown here. But exporting it to PDF shrinks the widths back to standard. Even if I use scaling and A3 landscape as paper size.

This is a sample dojo showing the effect. There is plenty of unsed space on the right side.

How can I create a PDF showing one page per group and use the available page size?

Your example doesn't help me much, because the result is quite ugly (the next day is intended) and it doesn't page per group/day.

Kind regards

Bernd

Bernd
Top achievements
Rank 2
 answered on 09 Feb 2017
3 answers
133 views

Hi,

When I try to center a diagram using the BringIntoView method, the undo after centering the diagram is causing a bad behavior.

Here is a link for a demo that replicate the issue: http://dojo.telerik.com/esAVu

Replication steps:

1- Change the diagram position

2- Click on the Center button

3- Click the Undo button and check the behavior

The expected behavior is that the diagram will return to the old position before centering, instead it returns to completely random position.

Is this a bug in kendo diagram ? if yes, is there a consideration to fix it ?

 

Boyan Dimitrov
Telerik team
 answered on 09 Feb 2017
1 answer
98 views

I am getting a very weird problem only on Edge:

1. Open the following site on Edge: http://dojo.telerik.com/emONo/2

2. clear the first cell "Jane Doe" and click enter

3. Click on the same cell. You will not be able to edit it unless you double click on it

Alex Hajigeorgieva
Telerik team
 answered on 09 Feb 2017
2 answers
107 views
Using the trial and exploring options - does utilizing a signalr data source support grid server-side grouping (serverGrouping = true), possibly using DataSourceRequest?
Christopher
Top achievements
Rank 2
Iron
 answered on 08 Feb 2017
2 answers
222 views

Hi --

I've been trying to get a "switch" of any kind to work with the regular MVVM framework -- it's a full desktop web application (not the mobile flavor).

I have tried including the mobile css, creating a new kendo.mobile.application, but nothing seems to work. 

Do you have any examples of the mobile switch being used in a non-mobile application and using the MVVM framework?  I'd love to see the code in a JsFiddle or something.

If you need it, I can try to create a non-working fiddle with what I'm after -- but it's really just a multi-field form, where one/more of the fields is a switch -- and uses the MVVM framework and NOT a mobile application.

Any assistance is appreciated -

Erik

Erik
Top achievements
Rank 2
 answered on 08 Feb 2017
2 answers
193 views

Hello,

I am looking at doing remote validation using custom rules and I found http://www.telerik.com/blogs/extending-the-kendo-ui-validator-with-custom-rules approach which is exactly what I am looking for, however I would like to show a message using different styling/template when a field is in "checking.." state vs when there is an actual error, 

Is there any way to specify an error template only for single field or conditionally change the error template based on for what field it is showing the error message, also I am using AngularJS version

 

Thanks
Ketul

 

 

James
Top achievements
Rank 1
 answered on 08 Feb 2017
3 answers
1.2K+ views

I'm trying to write some javascript that will disable/enable all controls, regardless of type, in a specified div.

How can I do this? I understand that I might have to write a little code for each time of control, but I need to know where to start.

 

Rumen
Telerik team
 answered on 08 Feb 2017
3 answers
244 views

If I remove the url property on the data item, behavior is normal.

I've got a jsFiddle that demonstrates the problem here. The last node, 'Carpets' has a url property and can't be dropped and won't fire the drag event.

Ivan Danchev
Telerik team
 answered on 08 Feb 2017
6 answers
702 views

Hi -- there seems to be a bug with the Draggable widget, where text <input> elements inside the draggable element cannot be focused with the mouse.  See the following simple JS Fiddle:

http://jsfiddle.net/kQ5Sm/2/

Please let me know if there is a fix/workaround for this issue.  Thanks!

ryan
Tsvetina
Telerik team
 answered on 08 Feb 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?