Telerik Forums
Kendo UI for jQuery Forum
1 answer
112 views

Hi,

I have a task with long name and after exporting it to pdf, name is shown partially.

I tried to change width of the column before exporting and reset it after it:

let columns = $("#gantt").getKendoGantt().options.columns; columns[3].width = 1500; $("#gantt").getKendoGantt().setOptions({columns: columns}); outerThis.gantt.saveAsPDF();

but it broke my gantt chart, because I have other methods in databound and databinding which resets after setOptions.

 

I also tried to change height of my rows, but it broke dependencies like shown in Screenshot(120).

 

How can I solve this problem? Is there any way to change only the width of the column without changing other things?


Thanks 

Ianko
Telerik team
 answered on 27 May 2021
1 answer
113 views

Hi,

I have a Gantt with a big data (3 years) and after exporting to pdf it is cropped. Is there any limitation and how can I solve this problem??

 

Thanks

Veselin Tsvetanov
Telerik team
 answered on 27 May 2021
1 answer
1.4K+ views

We have two grids in our site that have a custom command button declared similarly to this:

columns.Command(cmd => cmd.Custom("Unaudit").Click("unaudit")).Width(60);

unaudit is a javascript function.  Works ok but inside unaudit we have to jump through hoops to get the data we want, the id of the record in that grid row.


        var id = this.dataItem($(e.currentTarget).closest("tr")).ID;

Is there a way to access the data object and pass just a field to the javascript function?
example (not working)

columns.Command(cmd => cmd.Custom("Unaudit").Click("unaudit(data.ID)")).Width(60);

Help is appreciated.  Thanks.  Note that if i am required to use a client template column instead, i do know how to do that but was hoping i wouldn't have to do that.

 

Anton Mironov
Telerik team
 answered on 26 May 2021
5 answers
288 views

Hello,

I'm running into a problem when trying to use the same dataSource in two different grids on my SPA page.

The following construction in used in the different grids:

{
field: "_company_id",
title: "Bedrijf",
editor: companyComboBox,
dataSource: dataSourceCompany,
dataTextField: "name",
dataValueField: "id"
}

When I leave out the dataSource at one grid, both grids show up, but one grid only shows the _company_id value.

When I use the same code in both grids the second grid will not show, also no errors show up.

Please advice, I've added more info below, more info added.

Neli
Telerik team
 answered on 26 May 2021
1 answer
482 views

Dear Sir or Madam,

FileManager: When I click the "New Folder" toolbar button, a new folder is created (called "New Folder"). I would like to know, if and how it is possible to localize the default name of new folders? Unfortunately, this is not mentioned in your documentation.

Is it possible to localize the default name of a new folder? (e.g. to its German translation "Neuer Ordner")

I look forward to your reply!

Yours sincerely,

Patrick

Martin
Telerik team
 answered on 26 May 2021
1 answer
150 views

In the this documentation, you define a 'group' field that stores three fields - fieldvalue and items. However, I am having trouble accessing this object in function notation. 

            let IsActive: kendo.ui.GridColumn = {
                field: "IsActive",
                title: "Active",
                aggregates: ["group"],
                template: `<span data-columnName="IsActive">#= IsActive #</span>`,
                groupFooterTemplate: (data: any, group: any) => {

                    return group.items[0].Name
                }
            }

See that 'group' is not defined in this context. How can I reference this in function notation?

Georgi Denchev
Telerik team
 answered on 26 May 2021
1 answer
125 views
After an initial search, if the user selects multiselect line items, and then searches for a different term, upon trying to select another item, the search term box clears itself and the filtered items reload unfiltered.  How can I fix this behavior?
Neli
Telerik team
 answered on 26 May 2021
2 answers
449 views

My goal is to handle the exportExcel event,  invoke the export saveAsExcel function, then pass the excel data to the server as a base64 string.
However if the spreadsheet contains images, and unhandled error occurs in the kendo script, which I have managed to track down via the unminified kendo.all.js and it seems to occur at this place:

'images is not defined' is the error message.

I've created Dojos which illustrate and reproduce the problem.
Clicking on the "Export" button will trigger the excel export:
 - Non-working Dojo with an image: https://dojo.telerik.com/AdIWETEY/15
 - Working Dojo (without images): https://dojo.telerik.com/iRebuTuV

Neli
Telerik team
 answered on 26 May 2021
1 answer
286 views

Hi,

The position of tooltip in bar charts is at top bar-line by default. Can this position be changed to the middle of the bar chart . While going through the documentation we didn't find any property to set the position. Please suggest.

Regards,

Jaspreet

Georgi Denchev
Telerik team
 answered on 26 May 2021
1 answer
323 views
I want to export excel on kendo grid. I can export all rows as excel successfully. But I'm trying to export only checked rows using `grid.exportSelectedToExcel(true);`. 
But this throw an error 

    Uncaught TypeError: grid.exportSelectedToExcel is not a function
        at exportSelectedAssets (<anonymous>:103:22)
        at HTMLButtonElement.onclick



I'm using jszip.min.js (JSZip v3.1.5 - A JavaScript class for generating and reading zip files)
Nikolay
Telerik team
 updated answer on 26 May 2021
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
AICodingAssistant
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
+? 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?