Telerik Forums
Kendo UI for jQuery Forum
1 answer
95 views

If I set the max property to "new Date()" the time picker does not allow me to pick a time later than now yesterday.

If "new Date()" is 27-June-2018 17:48 I can't select 26-June-2018 18:00

Is there a work-a-round? Or can I somehow have the max only affect the datepicker and not the timepicker?

 

            $("#date-of-control").kendoDateTimePicker({
                value: new Date(),
                dateInput: true,
                format: "dd-MMM-yyyy HH:mm",
                timeFormat: "HH:mm",
                weekNumber: true,
                interval: 30,
                max: new Date()
            });

Viktor Tachev
Telerik team
 answered on 29 Jun 2018
3 answers
668 views

Hi support,

on a page (asp.net mvc 461) where first load is critical (and where I just need the kendo datetimepicker) I'm trying to "just include the required kendo.xxx.min.js files" (instead of just including kendo.all.min.js) (using the Audit tab in Chrome I'm told that the change reduces the load time from 11 sec to less than 3 sec). 

From this page https://docs.telerik.com/kendo-ui/intro/supporting/scripts-editors I setup my bundle like this:

    bundles.Add(
        new ScriptBundle("~/bundles/minimalJs")
            .Include("~/Scripts/jquery-3.3.1.min.js")
            .Include("~/Scripts/bootstrap.min.js")
            .Include("~/Scripts/kendo/kendo.core.min.js")
            .Include("~/Scripts/kendo/kendo.data.min.js")
            .Include("~/Scripts/kendo/kendo.binder.min.js")
            // req for datetimepicker (see https://docs.telerik.com/kendo-ui/intro/supporting/scripts-editors)
            .Include("~/Scripts/kendo/kendo.userevents.min.js")
            .Include("~/Scripts/kendo/kendo.selectable.min.js")
            .Include("~/Scripts/kendo/kendo.calendar.min.js")
            .Include("~/Scripts/kendo/kendo.popup.min.js")
            .Include("~/Scripts/kendo/kendo.datepicker.min.js")
            .Include("~/Scripts/kendo/kendo.timepicker.min.js")
            .Include("~/Scripts/kendo/kendo.datetimepicker.min.js")
            .Include("~/Scripts/moment.min.js") // todo consider moving to view
            .Include("~/Scripts/fingerprint2.min.js") // todo consider moving to view
            .Include("~/Scripts/minimal.js")
        );

In my view I do this:

<input id="datetimepicker" />

$("#datetimepicker").kendoDateTimePicker({
  value: new Date()
});

The input element does not, however, render into a kendoui datetimepicker (see screenshot date-time-picker-1.png)

NB if I use the example from https://demos.telerik.com/kendo-ui/datetimepicker/index and initialize using the option dateInput: true I'm getting the following error:Uncaught TypeError: k.DateInput is not a constructor

I have also prepared an example the illustrate my issue: https://dojo.telerik.com/UXEbUMiY/3

What files must I include as a minimum to be able to use the kendo ui datetimepicker?

Thanks in advance.

Best regards

Morten

 

 

Viktor Tachev
Telerik team
 answered on 29 Jun 2018
19 answers
357 views
I am going to use the Kendo UI theme builder to create an on-brand theme for the company I work for based on the Flat UI theme.

However I also need to create a set of graphic elements in Photoshop that match the UI set so our designers can use them to create consistent mockups for several different projects we are working on.

My question is: Does anyone know of a photoshop template of the flat UI theme I can obtain and edit for this purpose?
It would save me from having to recreate the elements myself and cut out a bunch of time.
Lili
Telerik team
 answered on 28 Jun 2018
5 answers
591 views

The KendoUI grid code in my application is like this:

 

<kendo-grid id="myGrid" options="mainGridOptions"><br>        <kendoGridToolbarTemplate><br>                <button kendoGridExcelCommand>Export to Excel</button><br>             <kendo-grid-excel fileName="GridData.xlsx"><br>               </kendo-grid-excel><br>        </kendoGridToolbarTemplate><br>        <div k-detail-template><br>            <br>            <kendo-tabstrip> Some DIVs and fields here </kendo-tabstrip><br>        </div><br>       <kendo-grid-excel fileName="Products.xlsx"></kendo-grid-excel><br>    </kendo-grid>

 

The data source to this grid is attached on run-time. I am trying to make the Export to Excel button workable but it is not working. What am I doing wrong?

Nabeel
Top achievements
Rank 1
 answered on 28 Jun 2018
7 answers
340 views
Hello,

I have a simple question - how to bind data to grid. I have service that returns JSON data as this one.

01.<div id="example" class="k-content">
02.    <div id="grid"></div>
03. 
04.    <script>
05.      var test = [
06.        {
07.           "ID":1,
08.           "ISIN (SML)":"test"
09.        }
10.      ]
11. 
12. 
13.        $(document).ready(function() {
14.            $("#grid").kendoGrid({
15.                dataSource: {
16.                    data: test
17.                }
18.            });
19.        });
20.    </script>
21.</div>


Tried to bind it to grid, but it doesn't work. I know it is because of field "ISIN (SML)" name, and grid is trying to create property with this name. But how to do it? I can't change service I'm consuming. Data are dynamic and field name is the same as column name.

Regards
René
Stefan
Telerik team
 answered on 28 Jun 2018
3 answers
201 views
When I use a checkbox it will update my view model no problem, but when I turn on data-role="switch" it no longer updates. Is there something I need to do differently.
Running
Top achievements
Rank 1
 answered on 27 Jun 2018
1 answer
153 views
I have implemented a scheduler but after loading the scheduler data wherever inside the scheduler we click the widget jumps up. Is there a way to prevent this from happening.
I did find the issue in the common issue section. But the solution provided in it doesn't solve mine as I'm using a drag and create event so disabling the select is not a viable option for me.
In this example you can see that after clicking on run whenever we click inside the scheduler it jumps a little but in my application with huge volume of data the jump is very significant.
Is there a way to prevent this?
Ivan Danchev
Telerik team
 answered on 27 Jun 2018
7 answers
1.8K+ views
Hi,
we will use the new kendo MultiSelect widget to select one or more products. 
The data will be hierarchically structured (products groups and products themselves). The kendo TreeView widget would be perfect for this job. 
Is there a way to combine these two widgets?
Neli
Telerik team
 answered on 27 Jun 2018
1 answer
207 views

I would like to position both the scroll buttons for the tabstrip to the right (see screenshot) and let them always be visible. Any thoughts on whether this is possible and how to get that working?

 

Thanks,
Ron

Ivan Danchev
Telerik team
 answered on 27 Jun 2018
7 answers
945 views

Hello

After going through the Web Font Icons documentation I wanted to add an icon with no text to a mobile button:

CSS:

.km-search:after, .km-search:before {
    content: "\e0e9";
    font-size: 32px;
}

(considering proportions of 16 -> 32 -> 64, etc. as mentioned in documentation)

HTML:

<div id="searchmapheader" data-role="header">
    <a id="foo" data-role="button" data-icon="search"></a>
</div>

 

The icon looks like the attachment (see screenshot1.png) : The icon is out of the defined button

On setting a width like 80px for the <a> tag looks like screenshot2.png : The icon is not centered at all

So I tried to center any text inside the <a> tag: text-align: center; -> will be ignored, so it looks still like screenshot2.png

 

Now I wonder how I can center the k-icon inside the mobile button?

Regards

 

 

 

 

 

 

 

Tayger
Top achievements
Rank 1
Iron
 answered on 27 Jun 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?