Telerik Forums
Kendo UI for jQuery Forum
1 answer
4.6K+ views
I have a grid (integrated into ember/javascript) with an ajax response assigned as its datasource. Based on the response I can come up with my column title and width and i want to assign that to my grid. But everything i do i dont see any change reflected to the grid. I was wondering how i can change column properties after grid initialization.
Konstantin Dikov
Telerik team
 answered on 05 Nov 2018
1 answer
69 views

Hi,

I would like to know how to make the DateInput / DatePicker of JQuery behave as in Angular, that is, when entering a date, when informing the day pass straight to inform the month, without having to use the right arrow.

Thank you

Sandro Paese

Konstantin Dikov
Telerik team
 answered on 05 Nov 2018
4 answers
132 views

Hi I have a Kendo DropDownList with server filtering set with 3 min characters.

It works fine but when I bind the form, I have no data "inside" the control (autobind = false) and I had to set the text property to show the "selected value".

When user click on it to search an item, the control loose the text value.

When the popup close I expect the control show the text value yet, but If user doesn't select an item, the text value is empty.

I've tried to set the text value on close event but It doesn't works.

This is an example (read data property is set to unexists url but for this sample, data are useless)

Example: https://dojo.telerik.com/awuVEdEM/3

to reproduce 1. Run (see the text value) 2. click to open (loose text) 2. then click to close (the function call is correct but no text visible)

I need to persist the text property until user select something else, or to set it on close event.

 

Thank you

Fabio Masini
Top achievements
Rank 1
 answered on 05 Nov 2018
3 answers
163 views

JavaScript is not my strong suit.

I'm looking at the source for a virtualization demo to see how it works and gets the performance it does. (my grid is terrible).

 

Could someone offer some commentary to the script below to help me understand and maybe learn something?  Thanx!

 

generatePeople(count, function(data) {
                var initStart;
                var renderStart;
 
                $("#message").text("");
 
                var nextId = data.length + 1;
 
                var dataSource = new kendo.data.DataSource({
                    pageSize: 20,
                    transport: {
                        create: function(e) {
                            if (e.data.models) {
                                //batch editing
                                for (var i = 0; i < e.data.models.length; i++) {
                                    e.data.models[i].Id = nextId++;
                                }
                                e.success(e.data.models);
                            } else {
                                e.data.Id = nextId++;
                                e.success(e.data);
                            }
                        },
                        read: function(e) {
                            e.success(data);
                        },
                        update: function(e) {
                            if (e.data.models) {
                                //batch editing
                                e.success(e.data.models);
                            } else {
                                e.success(e.data);
                            }
                        },
                        destroy: function(e) {
                            if (e.data.models) {
                                //batch editing
                                e.success(e.data.models);
                            } else {
                                e.success(e.data);
                            }
                        }
                    },
                    schema: {
                        model: {
                            id: "Id",
                            fields: {
                                Id: { type: "number", editable: false, nullable: true },
                                FirstName: { type: "string", validation: { required: true } },
                                LastName: { type: "string" },
                                City: { type: "string" },
                                Title: { type: "string" },
                            }
                        }
                    }
                });

 

Marin Bratanov
Telerik team
 answered on 04 Nov 2018
2 answers
1.0K+ views

Hi,

I'm trying to implement the legend into my Pie Chart. I have two questions. 

1.) I've noticed that if the user selects the an item in the legend, the data in the graph changes to either include or exclude that data items. I do not want my users to be able to do so in my graph. Is there a way to shut this off?

2.) I changed the marker in the legend to be a square instead of a slim rectangle. I can't figure out how to get my labels back to how they were originally, only with the new marker. I keep getting 'undefined' labels. Please review the code below and provide any clues.

    $("#pie1").kendoChart({
        chartArea: {
            width: 500,
            height: 500
        },
        title: {
            position: "top",
            text: "2017 "
        },
        seriesDefaults: {
            labels: {
                background: "transparent",
                template: "#= category #: \n #= value#%"
            }
        },
        series: [{
            type: "pie",
            startAngle: 150,
            data: [{
                category: "example 1",
                value: 35.8,
                color: "#f2ea39"
            },{
                category: "example 2",
                value: 33.9,
                color: "#0e1b2d"
            },{
                category: "example 3",
                value: 16.4,
                color: "#134475"
            },{
                category: "example 4,
                value: 9.1,
                color: "#507da8"
            },{
                category: "example 5",
                value: 2.8,
                color: "#b6c8db"
            },{
                category: "example 6",
                value: 1.9,
                color: "#fbf9c9"
            }]
        }],
        tooltip: {
            visible: true,
            background: "#",
            format: "#= category #: \n #= value#%"
        },
        legend: {
            position: "bottom",
labels: {
                font: "1em Avenir",
                padding: 10
                },
            align: "center" ,
            item:{
                visual: function (e) {
                    var color = e.options.markers.background;
                    var labelColor = e.options.labels.color;
                    var rect = new kendo.geometry.Rect([0,0],[150,100]);
                    var layout = new kendo.drawing.Layout(rect, {
                     spacing: 5,
                     alignItems: "center"
                    });

                    var marker = new kendo.drawing.Path({
                     fill: {
                        color: color
                     }
                    }).moveTo(0, 0).lineTo(0, 15).lineTo(15, 15).lineTo(15, 0).lineTo(0, 0).close();

                    var label = new kendo.drawing.Text(e.series.data.category, [0, 0], {
                     fill: {
                        color: labelColor
                     }
                    });

                    layout.append(marker, label);
                    layout.reflow()

                    return layout;
                }
            }

        }
    });

 

 

Thank You!

Tsvetomir
Telerik team
 answered on 02 Nov 2018
6 answers
811 views

Hello, 

 

I have a specific request - enable user to display and select date range when click on the single button or on text box. Behavior of date picker suits fine, but unfortunately it lacks ability to select date range. On the other side, calendar widget has ability to select date range, but I cannot figure out how to bind it to the text box and show - hide on demand.

 

Is there any way to achieve this?

 

Thank you in advance.

Regards,

Vedad

Vedad
Top achievements
Rank 3
Bronze
Bronze
Iron
 answered on 02 Nov 2018
2 answers
74 views
Is there a way to implement a multi-column header and use minScreenWidth to hide some of the sub-columns at varying screenwidths?  It doesn't seem to work for me, as in this example.
Myron
Top achievements
Rank 1
 answered on 02 Nov 2018
1 answer
354 views

Hi

Our company report the export issue with special characters and implemented the solution which has work great, thank you, until now.

https://www.telerik.com/forums/excel-export-with-special-characters

Telerik wrote a custom JS method for us as a workaround but it doesn't appear to cover every case,

We wanted to know if any long term fixes been made to deal with every case for special characters ... we are currently using version 

Kendo UI v2017.3.1026

Any insight would be appreciated

Thanks

 

 

Alex Hajigeorgieva
Telerik team
 answered on 02 Nov 2018
5 answers
458 views

How can I create datetime range filter. I saw some examples with date range in telerik forum but never seen a datetime range filter implementation.

 

here is my example dojo. 

 

I want to filter BirthDate field with range selection. IE. first range 10/9/1966 21:00 second one 11/9/1966 15:00

Konstantin Dikov
Telerik team
 answered on 02 Nov 2018
3 answers
323 views

Hi,

 

Trying to implement a design for a bar chart where all the values are positive, we want the bars to "float" above the x-axis, think of it as a way to have a fixed margin between the x-axis and the bar bottom (value = 0)  (assume that the x-axis shows up at -10 instead of 0 - but we do not want the bars to extend all the way to the x-axis

 

Any ideas how to implement this?

Tsvetina
Telerik team
 answered on 02 Nov 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?