Telerik Forums
Kendo UI for jQuery Forum
5 answers
1.0K+ views

Hi, I noticed that when we try out the following sequence, we get a corrupted excel file on export.

Go to https://dojo.telerik.com/IcoRol
Open the excel file (Attached to this thread)
Export to excel

Result: Corrupted Excel file

I have pinpointed that the issue is related to a filter in my excel sheet. I’ve added a filter on a column, sorted from A to Z and that’s when the export issue started occurring. The bad part about it is, once my file contained a filter, even if I remove that filter, the end result will be that on export, it generates a corrupted excel file.

Thanks,
Maxime

Neli
Telerik team
 answered on 04 Aug 2020
1 answer
100 views

Hi,

I using Kendo Jquery to export .pdf a content of div have fomat as bellow :

<div class ="row" id="exportpdf">

   <div class="col-6">

         <div id="grid1"></div>

   </div>

   <div class="col-6">

        <div id="grid2"></div>
   </div>

</div>

picture in attachment file.

How do export with this layout to .pdf.

Many thanks !

 

Petar
Telerik team
 answered on 04 Aug 2020
1 answer
193 views

I'm looking at https://demos.telerik.com/kendo-ui/menu/context-menu and have a question about this piece of code:

var menu = $("#menu"),
    original = menu.clone(true);
 
original.find(".k-state-active").removeClass("k-state-active");
 
$("#apply").click(function (e) {
    e.preventDefault();
    var clone = original.clone(true);
 
    menu.getKendoContextMenu().destroy();
    clone.appendTo("#example");
 
    initMenu();
});

 

It clones the menu, it removes the active selection marker from any selected elements and then attaches a click event to all elements with Id = "apply".

But there are no apply elements in the code sample? And running this from the dojo with that code commented out seems to yield the same result.

Is it an example of how to handle context menus on other elements I might choose to put on that page? (but also for left-click though..?)

Ivan Danchev
Telerik team
 answered on 04 Aug 2020
3 answers
133 views

Get gantt From Kendo UI Custom Download - 2020.2.617.

1. When installing the package "@progress/kendo-theme-bootstrap@4.18.0", the left tree and the grid on the right are detached. 
2. When installing the package "@progress/kendo-theme-bootstrap@4.17.0", the height of the progress bar on the right is not aligned. 

Please refer to the upload file.

Because it is urgent, please let us know if it can be repaired in a short time .

維国
Top achievements
Rank 1
Veteran
 answered on 04 Aug 2020
1 answer
3.2K+ views

I need a kendo confirm dialog that returns a value.

 

If OK button is clicked then i need to perform some actions.

If Cancel button is clicked then do nothing.

 

I have a kendodialog function already created with "OK" and "Cancel" button but it does not behave the way I expect it to behave.

I need the code to wait till the user selects a respoonse and not do any other processing till a user selects any input which would be the case for a normal javascript confirm dialog.

 

Any example demonstrating the same would be extremely helpful.

01.if (displayConfirmDialog("Do you want to continue ?")) {
02.              //  do something if function returns "TRUE"  i.e. the OK button is clicked
03.}
04. 
05.// Test function
06.function displayConfirmDialog(contentText) {
07.    var response = false;
08.    let dialogDiv = $('<div />').appendTo('body');
09.    dialogDiv.attr('id', 'displayDialog');
10.    $("#displayDialog").kendoDialog({
11.        width: "450px",
12.        closable: false,
13.        modal: true,
14.        content: "<p id = dialogContent>" + contentText + "</p>",
15.        buttonLayout: "normal",
16.        actions: [
17.            {
18.                text: "Ok",
19.                action: function (e) {
20.                    closeAndDestroyNotificationDialog(e.sender);
21.                    response = true;
22.                },
23.                primary: true
24.            },
25.            {
26.                text: "cancel",
27.                action: function (e) {
28.                    closeAndDestroyNotificationDialog(e.sender);
29.                }
30.            }
31.        ],
32.    })
33. 
34.    $(".k-window-titlebar").addClass("warningDialogTitleBar");
35.    $(".k-dialog-title").addClass("warningDialogTitle");
36. 
37.    return response;
38.}
Ivan Danchev
Telerik team
 answered on 03 Aug 2020
8 answers
973 views
I'm using the upload widget and have a problem receiving files server side in an mvc controller.

Javascript code:
 $("#file-upload").kendoUpload({
            async: {
                saveUrl: '@Url.Action("UploadFiles")',
                autoUpload: false
            },
            upload: function(e) {
            }
        });

Controller signature: public ActionResult UploadFiles(IEnumerable<HttpPostedFileBase> files)

When I debug into the controller method files is null. If I debug into the upload event on the widget I see that it contains the files. Looking at fiddler I also see that the data is sent to the server.



Martin
Telerik team
 answered on 03 Aug 2020
2 answers
552 views

Hi,

I'm having the same problem. I already check the name input matching the controller parameter, but still getting a null  IEnumerable<HttpPostedFileBase>. I'm out of new solutions, so any help will be appreciated.

Please, find my project in attach. I try via normal-save and chunck-mode, without sucess. 

Best regards, 

Leandro Alves

Martin
Telerik team
 answered on 03 Aug 2020
1 answer
302 views
I have a problem related to export to pdf in Gantt. When Gantt left side is expanded, and I export to pdf, everything is ok, and all columns are present in exported pdf (see expandedDip.png and expandedDipPdf.png). But when i collapsed it, some columns are not visible in exported pdf (see collapsedDip.png, collapsedDipPdf1.png  and collapsedDipPdf2.png). How can I solve this problem?  Can I apply scroll for example, or another solution for this?

Dimitar
Telerik team
 answered on 31 Jul 2020
2 answers
110 views

Hi, 

I have 3 duplicated posts,

https://www.telerik.com/forums/gantt-issue-related-to-export-to-pdfhi-i-have-a-problem-related-to-export-to-pdf-in-gantt-when-gantt-left-side-is-expanded-and-i-export-to-pdf-e

https://www.telerik.com/forums/gantt-issue-related-to-export-to-pdf

https://www.telerik.com/forums/gantt-issue-related-to-export-to-pdf-97829b38177a

 

but I can't delete them. i hope admin will delete first two posts. Thanks in advance.

Dimitar
Telerik team
 answered on 31 Jul 2020
2 answers
565 views

I want to reach selected item's index in the drawer widget. When I examine e.sender from console like this,

console.log(e.sender);

I can find updated value of e.sender._selectedItemIndex.

However, when I want to use e.sender._selectedItemIndex variable directly I get previous value of e.sender._selectedItemIndex. For example, If I open drawer for the first time and select an first item, from console I can see that e.sender's _selectedItemIndex variable is equal to 0 but console.log(e.sender._selectedItemIndex) prints undefined. When I select any other item from drawer, now console.log(e.sender._selectedItemIndex) prints 0. How can I reach and use e.sender._selectedItemIndex's updated value in itemClick function?

 

Deniz
Top achievements
Rank 1
Veteran
 answered on 31 Jul 2020
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
Dialog
Chat
DateRangePicker
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
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?