Telerik Forums
Kendo UI for jQuery Forum
10 answers
1.2K+ views
I don't particularly like how the grid grouping is working, and I'm hoping that I'm just configuring it incorrectly. My use case is for a grid that contains a lot of data (1000s of rows) to allow grouping of columns by dragging to the groups area. I'd like to have client-side paging enabled because there is a lot of data.

The behavior of the grid is strange to me though, because I can only see the groups that apply to the rows currently visible on the page. So if my page size is 20 and my first group has 25 items in it, then I'll just see the one group, even if I minimize it.

Here are a couple of things that I'd expect to happen instead:
  • Some indicator that explains that there are more items that apply to this group on the next page
  • When viewing the next page, some indicator that explains that there are previous items in the same group
  • Upon minimizing the group, I'd expect to see the second group on the first page of results, with its items now visible

Here's a jsfiddle that shows the behavior that I'm currently seeing: http://jsbin.com/joleriva/1/edit
Notice how you see 4 items in the "Foo: 1" group, and if you go to the second page you see one additional item that belongs to that group. If (on the first page) you minimize "Foo: 1" group you don't see anything but the group header and the paging controls.

Like I said, I really hope that I'm just missing some configuration options that will make this work in a more intuitive way.

By the way, I've looked into the Virtual Scrolling with groups, but that has problems of it's own when you minimize a group... http://trykendoui.telerik.com/ivum

Viktor Tachev
Telerik team
 answered on 05 Dec 2019
4 answers
645 views

The drawer widget builds form a list of items similar to menu items.

What would be the proper way to have subitems like nested ul>li>ul>li?

Nikolay
Telerik team
 answered on 05 Dec 2019
4 answers
2.2K+ views

Hello guys.

Basically I'm trying to export my grid to PDF and this works just fine simply reading kendo documentation. But when I open this generated PDF, it looks just like a printscreen to me. What I wanna do is change it, use some kind of custom template (e.g html) or something and beautify this.

I'm only using this lines of code for properly working:

var grid = $("#grid").data("kendoGrid");

kendo.drawing.drawDOM($("#grid")).then(function (group) {
    kendo.drawing.pdf.saveAs(group, "test.pdf");
});

 

Is there some way of doing this? (Changing this generated PDF layout)

Alex Hajigeorgieva
Telerik team
 answered on 05 Dec 2019
2 answers
135 views

Hello,

I want to show multiple events in one day. How to visualizes specific events in daily time basis instead of default yearly time basis? Any help is appreciated.

Thanks!

Shawn
Top achievements
Rank 1
 answered on 05 Dec 2019
1 answer
818 views

I am trying to export my openStreetMap to a PDF but the background (the map) doesn't show up. I see a bunch of errors in the console that are similar to:

Access to XMLHttpRequest at 'https://www.toolserver.org/tiles/bw-mapnik/4/4/6.png' from origin 'https://localhost:44342' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

I have no control over toolserver.org so I can't tell them to add Access-Control-Allow-Origin to their header. Is there a workaround? I'm open to using another map template that offers a black and white map if anyone knows of one that won't give me the cors error. 

Alex Hajigeorgieva
Telerik team
 answered on 04 Dec 2019
1 answer
403 views

Hi,
I have large records around 13000 and I used grid with endless scrollbar for better performance.
But if i want to select last row in grid. Scroll to last row number.
How do i accomplish that? I read blogs for virtual scrollbar but not getting for any endless scrollbar. Thanks in advance.

https://www.telerik.com/forums/vitual-scrolling-client-data-scroll-to-row-number

Nikolay
Telerik team
 answered on 04 Dec 2019
10 answers
3.0K+ views
I have a grid with the ability to export to PDF. When the user clicks on the Export to PDF, I'd like to prompt the user to enter a header / title that will appear as a header in the PDF document that will get created. Is it possible to do this?
Dimiter Topalov
Telerik team
 answered on 04 Dec 2019
8 answers
587 views
Is it possible to have multiple pages shown at once?  Say i want to display 3 at once, and behave like this:

1,2,3

scrolled

2,3,4

scrolled

3,4,5

Is something like this possible?
Lee
Top achievements
Rank 2
Silver
Bronze
Bronze
 answered on 03 Dec 2019
6 answers
6.7K+ views
I'm trying to encapsulate a method to retrieve the row id from my KendoGrids On every grid in my app I have a hidden column named Id. I would like to get this id from my base grid, on both master grid with childs or a grid with no childs. This is my not working method :
get idSelection() {
         var grid = $("#grid").data('kendoGrid');
         var row = grid.select();
 
         if (!row.is('.k-master-row')) {
            row = row.closest(".k-master-row");
         }
         const selected = this.grid.dataItem(row);
         return selected ? selected.Id : undefined;
      }
Nikolay
Telerik team
 answered on 03 Dec 2019
1 answer
12.3K+ views
I'm working on a project using MVC 3 and kendo controls. I have a Kendo grid that has set to have GridSelectionType.Row,  and I can get the correct selected row index by using index() function.

Code in .cshtml:
.Selectable(selectable => selectable.Enabled(true).Mode(GridSelectionMode.Multiple).Type(GridSelectionType.Row))

Code in javascript file:
var grid = $('#MyGrid').data("kendoGrid");
var selectedRow = grid.select();
var selectedRowIndex = selectedRow.index();

I also have another Kendo grid and this grid has set to have Cell selection. I can get correct selected cell index by cellIndex() function,  but I cannot get the correct selected row index by using index() function.

Code in .cshtml:
.Selectable(selectable => selectable.Enabled(true).Mode(GridSelectionMode.Multiple).Type(GridSelectionType.Cell))

Code in javascript file:
var grid = $('#MyGrid').data("kendoGrid");
var selectedRow = grid.select();
var selectedRowIndex = selectedRow.index();             // incorrect selected row index returned
var selectedCellIndex = grid.cellIndex(grid.select());  // correct selected cell index returned

Please help. How can I get selected row index on Kendo grid if it is in cell selection type?

Thanks,
Dimiter Topalov
Telerik team
 answered on 03 Dec 2019
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
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
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?