Telerik Forums
Kendo UI for jQuery Forum
1 answer
228 views

Hello,

I am trying to implement some conditional selection of slots in monthly timeline of scheduler. I looked at an example provided here:
https://demos.telerik.com/kendo-ui/scheduler/timeline
and modified this example by adding the following code to scheduler definition (link to dojo snippet: https://dojo.telerik.com/eciQugem):

          selectable: true,
          change: function (e) {
            var start = e.start;
            var end = e.end;
            e.sender.select({start: start, end: end});
          },

Adding this allows to select slots in row 0 (by default - as expected), but I want to be able to select slots in any row. The documentation suggests I should specify resources in options.resources, but I have no idea what should I put there and having given it a few shots I constantly encounter errors. Could you provide me with an updated dojo example that shows how to achieve it?

Ivan Danchev
Telerik team
 answered on 22 Jun 2020
8 answers
342 views

Is it possible to change the dropdown for the field selection on this control? We have several "related" tables that can be filtered on and would like to group the fields on the table name & also allow for searching the combo with text input (ie: https://demos.telerik.com/kendo-ui/combobox/grouping).

 

JT

Jeffrey
Top achievements
Rank 1
Veteran
Iron
Iron
 answered on 19 Jun 2020
3 answers
160 views

I want to customize the kendo.ui.Grid for my application and create a base class kendo.ui.GridEx that inherits from the kendo.ui.Grid class. Everything works fine, except with columns.selectable (true). The check boxes appear, but the click events are not handled. Therefore the selection method does not work either (no rows returned).

Example: https://jsfiddle.net/chstorb/g3n5or69/

Tsvetomir
Telerik team
 answered on 19 Jun 2020
1 answer
128 views

Greetings.

I am using the custom group functionality with two dropdownlist components, and I found an issue when I manually change the value from the first component to the second component and it doesn’t refresh the change.

I attach two images: one for the configuration and another to show the issue. 

It happens in every dropdownlist component that has the same configuration. I don’t know if this is a bug, and if that is the case, how can be fixed?

Thanks in advance.

Martin
Telerik team
 answered on 19 Jun 2020
2 answers
167 views

Is it possible to alter the format of the expressionPreview?

When a date filter is applied, the preview looks like: "Date Is After 'Tue Jan 01 2019 00:00:00 GMT+0000 (Greenwich Mean Time)'" -- I'd like to be able to customize the displayed date format, something like adding "format:"{0:dd/MM/yyyy}" to the 'fields' object.

Thanks

Frederic
Top achievements
Rank 1
Veteran
Iron
 answered on 19 Jun 2020
4 answers
863 views

Hi, 

I'm looking to implement an "action bar" when a user mouse hover a row. Just like in gmail or outlook365 when a user mouse is hover a message, icons appear to delete, mark as read, ...

 

All I found as of now, is to reserve a column and with jquery/css show/hide the icons. I don't want to reserve a specific column for that. I want it to be on either at the beginning (left) or at the end (right) of a row and on top of the row. I attached an image to demonstrate what I want to do.

 

An ideas ?

 

Thanks

Alex Hajigeorgieva
Telerik team
 answered on 18 Jun 2020
7 answers
734 views

How to show the tooltip shown in the screenshot when hovering (mouseenter) over (x) axes labels?

Thanks in advance

Nikolay
Telerik team
 answered on 18 Jun 2020
6 answers
611 views

Hi All,

I have created a bar chart , now I want to filter that chart with some selector outside the chart.

I would like to know how to filter the chart data on selecting drop down list( containing Country data).

Please see my code:

How do I filter my chart with dropdown selector.

Kindly Please help me.

Thanks,

Amit

001.<!doCTYpe html>
002.<html>
003.<head>
004.<link href="kendo.metro.min.css" rel="stylesheet">
005.<link href="kendo.common.min.css" rel="stylesheet">
006. 
007. 
008.<script src="jquery.min.js"></script>
009.<script src="kendo.all.min.js"></script>
010. 
011.</head>
012.<body>
013.<div id="example">
014.    <div class="demo-section k-content wide">
015.        <div id="chart"></div>

<label class="category-label" for="category">Search by Country:</label>
                    <input id="country" style="width: 150px"/>

016.    </div>
017.    <script>
018.    var monthdata = [
019.    {month:"Jan",wordpress:"5",codeigniter:"5",highcharts:"8",country:"USA"},
020.    {month:"Feb",wordpress:"5",codeigniter:"2",highcharts:"8",country:"India"},
021.    {month:"Mar",wordpress:"6",codeigniter:"3",highcharts:"9",country:"USA"},
022.    {month:"Apr",wordpress:"2",codeigniter:"6",highcharts:"6",country:"India"},
023.    {month:"May",wordpress:"5",codeigniter:"7",highcharts:"7",country:"USA"},
024.    {month:"Jun",wordpress:"7",codeigniter:"1",highcharts:"10",country:"SA"},
025.    {month:"Jul",wordpress:"2",codeigniter:"2",highcharts:"9",country:"SA"},
026.    {month:"Aug",wordpress:"1",codeigniter:"6",highcharts:"7",country:"India"},
027.    {month:"Sep",wordpress:"6",codeigniter:"6",highcharts:"6",country:"USA"},
028.    {month:"Oct",wordpress:"7",codeigniter:"4",highcharts:"9",country:"India"},
029.    {month:"Nov",wordpress:"3",codeigniter:"6",highcharts:"8",country:"USA"},
030.    {month:"Dec",wordpress:"4",codeigniter:"3",highcharts:"4",country:"SA"},
031.    {month:"Jan",wordpress:"5",codeigniter:"6",highcharts:"7",country:"USA"}];
032.     
033.    var sharedDataSource = new kendo.data.DataSource({
034.    data: monthdata,
035.    group:{
036.        field: "month",
037.        aggregates:[
038.        {field: "wordpress" , aggregate:"sum"},
039.        {field: "codeigniter" , aggregate:"sum"},
040.        {field: "highcharts" , aggregate:"sum"}
041.         
042.        ]
043.         
044.         
045.    },
046.    schema:
047.    {
048.        model:{
049.        fields:{
050.             
051.            wordpress: { type: "number"},
052.            codeigniter: { type: "number"},
053.            highcharts: { type: "number"},
054.             
055.             
056.        }
057.        }
058.    }
059.     
060.     
061.});
062.sharedDataSource.read();
063. 
064.var seriesA = [],
065.    seriesB = [],
066.    seriesC = [],
067.    categories = [],
068.    items = sharedDataSource.view(),
069.    length = items.length,
070.    item;
071. 
072.//create the chart series 
073.for (var i = 0; i < length; i++) {
074.    item = items[i];
075.     
076.    //    This is what I want to do..
077.    //seriesA[0].push(item.aggregates.len.sum);
078.    //seriesA[1].push(item.aggregates.wid.sum);
079.    //     or
080.    //seriesA.push([{item.aggregates.len.sum},{item.aggregates.wid.sum}]);
081.     
082.     
083.    seriesA.push(item.aggregates.wordpress.sum);
084.    seriesB.push(item.aggregates.codeigniter.sum);
085.    seriesC.push(item.aggregates.highcharts.sum);
086.    categories.push(item.value);
087.}
088.$(document).ready(function() {
089.         
090.            $("#chart").kendoChart({
091.                dataSource: sharedDataSource,
092.                title: {
093.                    text: "Chart Rating"
094.                },
095.                legend: {
096.                    visible: false
097.                },
098.                seriesDefaults: {
099.                    type: "bar",
100.                    stack:true
101.                },
102.                series: [
103.                {
104.                    name: "wordpress",
105.                   data: seriesA,
106.                color: "#3CB371"},
107.                {
108.                    name: "codeigniter",
109.                    data: seriesB,
110.                color: "#FFA500"
111.                },
112.                {
113.                    name: "highcharts",
114.                    data: seriesC,
115.                color: "#FF0000"
116.                }],
117.                valueAxis: {
118.                     
119.                    line: {
120.                        visible: true
121.                    },
122.                    minorGridLines: {
123.                        visible: true
124.                    }
125.                },
126.                categoryAxis: {
127.                    categories: categories,
128.                    majorGridLines: {
129.                        visible: false
130.                    }
131.                },
132.                tooltip: {
133.                    visible: true,
134.                    template: "#= series.name #: #= value #"
135.                }
136.            });

 $("#country").kendoDropDownList({
                        
                        dataTextField: "country",
                        dataValueField: "country",
    optionLabel: "All",
                        dataSource: monthdata
                      
                    });

137.});
138.        
139. 
140.    </script>
141.</div>
142. 
143. 
144.</body>
145.</html>
Silviya Stoyanova
Telerik team
 answered on 18 Jun 2020
1 answer
635 views

In the column width page of the grid documentation https://docs.telerik.com/kendo-ui/controls/data-management/grid/columns/widths, it says:

 

When scrolling is enabled:

- When all columns have pixel widths and their sum is less than the width of the Grid, the column widths are ignored and the browser expands all columns.

 

Is there a way to disable that for certain columns?  Some of my columns - especially the command column - look really stupid when the auto-resizing adds a bunch of whitespace to them.

 

Plamen Mitrev
Telerik team
 answered on 18 Jun 2020
2 answers
6.7K+ views
Good morning I have to realize multiselect with checkbox.
The final result will be very similar to this:
http://embed.plnkr.co/OVPTCV/
This example, however, is very old and I noticed that with the 2018 version of kendo it does not work perfectly.
It is possible to have the same result using the version of kendo 2018 which seems to me to use different approaches. (eg tagtemplate)

Joabe
Top achievements
Rank 1
 answered on 17 Jun 2020
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?