Telerik Forums
Kendo UI for jQuery Forum
7 answers
2.0K+ views
I have the following view (following the guidance here: http://www.kendoui.com/blogs/teamblog/posts/12-10-25/using_kendo_ui_with_mvc4_webapi_odata_and_ef.aspx), and although I can see in Fiddler that the OData request is correct and sends back what looks to be perfectly good JSON, the grid remains empty with "No items to display". What am I missing?

    
<div id="grid"></div>
 
<script>
    $(function() {
        $("#grid").kendoGrid({
            dataSource: {
                serverFiltering: true,
                serverPaging: true,
                serverSorting: true,
                type: "odata",
                transport: {
                    read: {
                        url: "/api/LegalEntity",
                        dataType: "json"
                    },
                    parameterMap: function(options, type) {
                        var paramMap = kendo.data.transports.odata.parameterMap(options);
                        delete paramMap.$inlinecount; // <-- remove inlinecount parameter.
                        delete paramMap.$format; // <-- remove format parameter.
                        return paramMap;
                    }
                },
                schema: {
                    model: {
                        fields: {
                            Name: { type: "string" }
                        }
                    },
                    data: function(data) {
                        return data; // <-- The result is just the data, it doesn't need to be unpacked.
                    },
                    total: function(data) {
                        return data.length; // <-- The total items count is the data length, there is no .Count to unpack.
                    }
                },
                pageSize: 10
            },
            height: 430,
            filterable: true,
            sortable: true,
            pageable: true,
            columns: [{
                field: "Name",
                filterable: true
            }]
        });
    });
</script>

jp2code
Top achievements
Rank 1
Veteran
 answered on 26 Jan 2021
5 answers
91 views

Hi,

i'm having this issue, shown in the image category_render_error.png.

the all day event is being rendered according to category(as shown in different colours). I was expecting the green events to be rendered first followed by the turquoise event. But it doesn't work like this in this case. 

How to choose which category of all day event to be rendered first? i want to show all the green ones followed by turquoise.

Also, referring to category_render_error2.png , "C on leave" and "D on leave" event should use up the whole row, but the "Seminar" and "Z last day" is overlapping the green colour events.

 

can i know how to change the font colour and background colour of each of the category event?

thank you.

 

 

Martin
Telerik team
 answered on 26 Jan 2021
5 answers
3.6K+ views

It seems that your TextBox control/widget only has the change event handler, so I would like to know how to (natively) extend the TextBox widget adding identical functionality for eg. keyup, keydown etc.

The pattern I'm asking about is this:

kendo.ui.TextBox.extend({ ?? })

So that I can use the event handler in both initialization and after:

$("#myTextBox").kendoTextBox({
    label: "Name",
    value: "Hello World!",
    change: function() { alert("Changed!"); },
    keyup: function() { alert("KeyUp!"); },
});

- AND -

$("#myTextBox").data("kendoTextBox").bind("keyup", function(e) { alert("KeyUp!"); });

I know that I could simply do something like below, but I need to be able to do it on initialization - and I don't think it is as clean as extending the generic way.

$("#myTextBox").bind("keyup", function(e) { alert("KeyUp!"); })

Georgi Denchev
Telerik team
 answered on 26 Jan 2021
1 answer
95 views

Hi team,

 

I am new to kendo grid.We are using Kendo jquery for our application.We face a problem in paging of the Grid.

Normal paging design is in attachment  file name "1".But at some time grid paging changed to Attachment "2"(it is the some grid in file "1" after successful insert of record).When we press f12 or if we move the window.it set back to older paging design.This is happening in different scenario all pages in my application.Can any one help on this please.

If you see file name "1.png",Paging is normal but same grid after insert paging,will look like in file name "2.png".If we move the browser screen or press f12.i will back to normal paging design.

We tried to resize the window but even after resizing issue remain same.Please help us on this

Georgi Denchev
Telerik team
 answered on 26 Jan 2021
1 answer
577 views

I am using Kendo grid jquery option pdf export and I am noticing that it does not apply template when the paperSize is set to "auto", however when I change it to "A4" it does apply.

Can anyone guide me what is the problem with "auto" ? I have a wide grid that cuts off when I set "A4" or "A3" with the landscape mode.

Alex Hajigeorgieva
Telerik team
 answered on 26 Jan 2021
3 answers
467 views

I'm trying to customize the shape hover template and add edit and delete buttons to allow users to click like the screenshot, and these buttons must display only when the mouse hovers on the shape.

I also need to capture user's click events from these buttons, because I need to open a custom window for edit and popup a confirm dialog.

Is there a way I can do this?

Georgi
Telerik team
 answered on 26 Jan 2021
16 answers
911 views

Hi, 

I've just updated to Kendo UI v2017.1.118, and I've noticed (what I think is) a bug with the icons.

I dont know how far it goes but here is a screenshot of my menu and dropdowns. As you'll see the dropdown icons are both the up and down arrows together.

Please advise.

Thanks,
Grant

 

Ivan Danchev
Telerik team
 answered on 26 Jan 2021
1 answer
146 views

Hi, Dev Team!

Thank you for pretty nice badge. But i find something, looks like a bug.

When budge-tag have no text, it still showing.

 

I edited budge-example from basic usage, just removed some text from span

https://demos.telerik.com/kendo-ui/badge/index

Attach pic

Stoyan
Telerik team
 answered on 25 Jan 2021
6 answers
317 views
Good Morning everyone.  I have found a project that needs adjusted because the scheduler is showing blank rows.  I am very new to Kendo, so I have been looking around for a solution.  Each item is a person on the schedule for that day.  Attached is a clip of the Scheduler so you can see what I am referring to.
Aleksandar
Telerik team
 answered on 25 Jan 2021
2 answers
186 views
In Kendo UI version 2017.2.621 the filters work ?

Thank you
Oscar
Top achievements
Rank 1
 answered on 25 Jan 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
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
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?