Telerik Forums
Kendo UI for jQuery Forum
1 answer
342 views

Hi Team,

 

Is there a way i can enable the keyboard tab/arrow keys for grid pager, where user can tab and select the page to navigate to, I understand that user can use shortcut keys to do page navigation but we are looking for navigation using arrow or tab keys.

 

thank you

Nikolay
Telerik team
 answered on 30 Sep 2021
1 answer
172 views

I've got a Gantt chart that I've limited the amount of customization, just defined it using two two datasources, a single 'Title' column and some Pdf settings. Whenever I export to Pdf, it's huge width, and all of my tasks are slotted in the first time slot.

I was using R2 2021, so I just updated to R3, v2021.3.914 and I'm still seeing the same behaviour.

I think I'm going a bit nuts since other users seem to be able to export to Pdf no problem. I had a custom JS build including only the components I require, so I wonder if I'm missing a dependency that helps with the time aspect of Pdf? So I tried using kendo.all.min.js and I'm still having some pretty unfortunate PDF exports.

The datasources aside (they seem to be operating fine, all the behaviour and functionality in the Gantt chart seems to be working without error), here is the init of my Gantt.

$("#gantt").kendoGantt({
    dataSource: tasks,
    dependencies: dependencies,
    columns: [
        { field: "title", title: "Title" }
    ],
    pdf: {
        fileName: 'GanttTest.pdf',
        paperSize: 'auto',
        landscape: true
    }
});

I've attached a screenshot of the UI, which is great. The tasks are all working fine in the UI, the dependencies all work. You can see where the times are slotted in the UI.

Then when I export to PDF, you can see the tasks are all incorrectly rendered under the 8AM time slot, and the other time slots are taking up way too much of the PDF making it pretty much useless as an export.

I've also tried playing with paper sizes in the pdf settings, which usually results in cutting off the content, even though the tasks are still all rendered under the 8AM time slot.

Has anyone else seen this behaviour?

Kevin

Neli
Telerik team
 answered on 29 Sep 2021
1 answer
158 views

I am exporting a jquery grid to PDF with saveAsPD(); I am setting pdf on grid initializing to 

pdf : {
multiPage: true,
allPages: false,
landscape: true,
repeatHeaders: true,
scale: 0.5,
creator: "John Snow",
margin: { top: "1cm", right: "1cm", bottom: "1cm", left: "1cm" },
 }

 If I am trying to change pdf options, creator for example, the created pdf has just headers and no data.

kendoGrid.setOptions({pdf: {creator: 'Sansa Stark'}});
kendoGrid.saveAsPDF();

The request to the new data is executed but data are not rendered, no a single row :(.

Can anybody help?

P/S Just in case pdf export handler:

pdfExport: (e) => {
const grid = kendo
.jQuery(this.gridConfigurationTemplate.nativeElement)
.data('kendoGrid');
const removableColumns = [];
grid.columns.forEach((col, index) => {
if (!col.ColumnId) {
removableColumns.push(index);
}
});
if (removableColumns.length) {
removableColumns.forEach((i) => {
grid.hideColumn(i);
});
e.promise.done(() => {
removableColumns.forEach((i) => {
grid.showColumn(i);
});
});
}
},
Neli
Telerik team
 answered on 29 Sep 2021
1 answer
179 views

Hi All.

I have a funny issue.

I am building kendo grid and set filtrable options.operators for number/integer column but the options are ignored and set to defaults, however same options for string liters are respected. UI element set for the integer type is respected as well. 

 

this how I build column

 

column.filterable = {
ui(element) {
element.kendoNumericTextBox({
format: '####',
decimals: 0,
});
},
operators: this.commonService.gridFilterNumberOperators.operators
};
} else if (
column.filterType != undefined &&
lstDateFields.indexOf(column.applicationDataType) > -1 &&
lstDateFields.indexOf(column.filterType.toLowerCase()) > -1
) {
column.filterable = {
ui(element) {
element.kendoDatePicker({
format: 'MM/dd/yyyy',
});
},
};
} else if (
column.filterType != undefined &&
column.filterType.toLowerCase() === 'string'
) {
column.filterable = this.commonService.gridFilterStringOperators;
}

options for integer column

option for string 

this how I initialize grid

 

kendo.jQuery(this.gridConfigurationTemplate.nativeElement).html('');
this.gridConfigurationTemplate.nativeElement.innerHTML = '';

kendo
.jQuery(this.gridConfigurationTemplate.nativeElement)
.data('kendoGrid')
.setOptions(options);

//this.bindTooltipForDispatcherGrid();
grid = kendo
.jQuery(this.gridConfigurationTemplate.nativeElement)
.data('kendoGrid');
grid.dataSource.page(1);
Georgi Denchev
Telerik team
 answered on 28 Sep 2021
1 answer
219 views

Hi Team,

is it possible to limit to what is the max width to which user can resize a column, such that the column does not go beyond the visible area and does not introduce scrollbar.

i know that scroll and resize goes hand in hand and hence i am not able to make that work.

any help here is appriciated.

Nikolay
Telerik team
 answered on 28 Sep 2021
1 answer
2.3K+ views

Hi Team.

 

is there a way i can change the styling of the placeholder(optionLabel) text for kendoDropDownList ?

 

thanks

Patrick | Technical Support Engineer, Senior
Telerik team
 answered on 27 Sep 2021
0 answers
214 views

Hi Team,

 

how can I connect a label to color-picker using "for" attribute? currently even though its linked, screen reader(accessibility) does not read the label for color-picker.

appreciate any help.

ashutosh
Top achievements
Rank 1
Iron
Veteran
 asked on 27 Sep 2021
1 answer
609 views

I have a grid use Kendo Grid. When i custom edit event and add event to input in edit mode like this

edit: function (e) {
                        if (e.container[0]) {
                            var cell = e.container[0]
                            $rootScope.rowToFocus = angular.element(cell).closest('tr').index();
                            $rootScope.colToFocus = e.sender.cellIndex(angular.element(cell).closest('td'));
                            if ($rootScope.rowToFocus != 0 || $rootScope.colToFocus != 0) {
                                $rootScope.gridToFocus = e.sender;
                                e.container.find("input").on("keydown", function (ev) {
                                    if (ev.which == 9 || ev.which == 13) {
                                        $rootScope.isKeyboard = true;

                                        ev.preventDefault();

                                     }  
                                })
                            }
                            else {
                                $rootScope.rowToFocus = undefined;
                                $rootScope.colToFocus = undefined;
                            }
                        }
                    }, 

So i prevented default of tab event but aslo prevent update the data i input in this... Please help me a solution to prevent tab event in my input and still raise the update data event when i leave this cell.

Georgi Denchev
Telerik team
 answered on 27 Sep 2021
1 answer
103 views

Hello, I have detail row that appears perfectly, except when the master row is at the bottom of the container (or screen).  The detail row still opens, but requires scrolling to see it.

How can I auto scroll far enough to get the detail row to show, when the detail row is outside of the bounding container or screen?

Thanks.

Georgi Denchev
Telerik team
 answered on 24 Sep 2021
2 answers
1.0K+ views

We have a use case where users are choosing which values they'd like to concatenate together, from a list of options.

At times, they may need to concatenate the same thing more than once

Kendo's multiselect seems like the best component for this

... but I'm getting stuck on customizing it's behavior to allow the same value to repeat, when CTRL + CLICK takes place.

  • click - should add/remove choices per the usual
  • CTRL + CLICK should push the choice onto the multiselect, regardless if the multiselect already has that choice
    • Observe whether or not CTRL has been engaged
    • rewrite normal deselect handler to honor the required CTRL + CLICK behavior

Things are very close to working, but am unable to get the MultiSelect to dynamically update its value correctly, using Kendo's value() method.

 

Offending line of code attached in screenshot

and sample Dojo here -> https://dojo.telerik.com/ELeligEY/14


Am I missing something w/ Kendo's API? Should I be approaching this with a different Kendo component? 


UPDATE: from scrounging the forums, it appears an underlying architectural design means MultiSelect inherits from something that does not allow repeating values? https://www.telerik.com/forums/allow-duplicate-items

Help with this feature request would be much appreciated.
https://feedback.telerik.com/kendo-jquery-ui/1359475-allow-select-items-in-multiselect-multiple-times

Or guidance on how one might customize the Kendo Multiselect to achieve this kind of use case.

Help much appreciated.

Caleb
Top achievements
Rank 1
Iron
 answered on 24 Sep 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
Drag and Drop
Application
Map
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
Licensing
ScrollView
Switch
TextArea
BulletChart
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
TimePicker
FloatingActionButton
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
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
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?