Telerik Forums
Kendo UI for jQuery Forum
6 answers
512 views

Hi,

I want to set the start time and end time  with remote data in Gantt CustomView,

so i call ajax then put them into "range" function, But the result  show out "undefined", 

my code bellow: 

  kendo.ui.GanttCustomView = kendo.ui.GanttView.extend({
            name: "custom",
            options: {
                yearHeaderTemplate: kendo.template("#=kendo.toString(start, 'yyyy')#"),
                quarterHeaderTemplate: kendo.template("# return ['Q1', 'Q2', 'Q3', 'Q4'][start.getMonth() / 3] #")
            },
            range: function(range) {
                var startD = '';
                var endD = '';
                $.ajax({
                    type: "post",
                    url: "@Href("~/Home/GetMinAndMaxDate/")",
                    data: { 'EmpNo': @Model.EmpNo },
                    async: false,
                    success: function (data) {
                        startD = data.split(";")[0];
                        endD = data.split(";")[1];
                    },
                    error: function () { alert("edit Error") }
                });
                this.start = new Date(startD);
                this.end = new Date(endD);        
            },

Shouldn't I do this? And how to set the date in remote way?

Thanks,

Liu

Dimitar
Telerik team
 answered on 13 Sep 2019
1 answer
223 views

Hi Guys,

Just want to tell you about a problem I've found in case it affects anybody else.

After upgrading from Angular 7 to Angular 8 we kept getting the error Cannot read property 'data' of undefined for any kendo grids using a transport object.

The error was in kendo.data.js, what was happening was the kendo code is using $.extends to clone the transport object but only the properties were being cloned, so when kendo tries to execute the read function, it does not exist on the cloned transport object.

It turns out that as part of the Angular upgrade, typescript is updated to 3.5.3 and the CLI has been changed to build using ES2015 rather than es5. ES2015 uses native javascript classes and the version of jquery we are using (1,11,1) doesn't include the functions when extending those classes.

As a work around, we have changed the target back to es5 in the tsconfig.json. 

Hopefully Kendo will switch to Object.assign instead of $.extends to clone their object as this plays nice with ES2015 / ES6

Nikolay
Telerik team
 answered on 12 Sep 2019
3 answers
520 views
Is there a way to implement a grid filter that would ignore diacritic characters (accent)?

If your filter value is "Deja vu", a value equal to "Déjà vu" would be considered as a match.

Right now, it is possible to implement a custom logic for sorting local data, but filtering doesn't seems offer such flexibility.

Best regards,

Simon
Viktor Tachev
Telerik team
 answered on 12 Sep 2019
3 answers
176 views

Remove kendo multiselect for kendo.all.min js file and create a custom kendo.multiselect.min.js

 

In my project i am using v2017 of kendo.all.min.js. but in case of kendo multiselect with server filttering , i am facing a issues while a adding custom data into the  datasource. if  i change a the version 2015 the multiselect are working bu other things are not working. so i want to remove mutiselect from kendo.all.min.js (v2017) and create a separate kendo.multiselect.min.js file with v2015

Petar
Telerik team
 answered on 10 Sep 2019
7 answers
440 views
Hi,

I am currently evaluating your MVC framework and have a question about the ImageBrowser control. Is there a way to remove the Path field on the top?
I would also remove the create folder button. Our users will be using this tool to add or remove images to a specific directory and those features (path and create folder) would only confuse them.

If we cannot remove them, can we disable them?

Thank you.
Joel
Top achievements
Rank 1
Iron
 answered on 10 Sep 2019
6 answers
570 views

Hi Team,

I've been messing around with this MultiSelect widget. It has been a little buggy after the Q3 2015 release. I'm saying so because this is not the first time I'm seeing and reporting a problem with this widget.

So, If you please go to this link - http://dojo.telerik.com/OSoTU/4

  1. Type "cha" in the multiselect control, and wait for 2 seconds to see the matching products,
  2.  Go ahead and choose one item from the products,
  3. Now, hit "Populate Items" button to add one more item to the widget.

It does not add it for the first time, but you can see the textbox has updated values. Now, if you hit the button again, it will show you the right items in the widget.

And this behavior can only been seen If serverFiltering is active.

Any suggestions?

 

Thanks,

George

Petar
Telerik team
 answered on 10 Sep 2019
3 answers
336 views

Hello,

In batch editing with locked column no focus on first cell.

In batch editing when i am add row, first cell get focus. If add first locked column. first cell didn't get focus.

Exemple:      https://dojo.telerik.com/ucEraQOW

Tsvetomir
Telerik team
 answered on 09 Sep 2019
5 answers
1.0K+ views

Hello,

I have the requirement to move the sort icon (arrow) to the left before the column heading. The reason is because if the column size is to small, the arrow is not visible for the user. We are not able - and willing - to hard code all table widths so the only solution is to change the display of the filter. Is there a way of moving the icon to the left, before the text, so that it is visible even if the column size is smaller than the column heading?

 

Regards

Sebastian

Jeffrey
Top achievements
Rank 1
Veteran
Iron
Iron
 answered on 06 Sep 2019
1 answer
159 views

Hi,

I'm wondering if there is a way to expand sub-menu items between the root items when the menu has a vertical orientation

For example for the menu below the space between products and blog would expand to accommodate the sub-menu. Would another control be better for this? 

<!DOCTYPE html>
<html>
<head>
    <style>html { font-size: 14px; font-family: Arial, Helvetica, sans-serif; }</style>
    <title></title>
 
     
 
</head>
<body>
            <ul id="menu">
                <li>
                    Products
                    <ul>
                        <li>
                            Furniture
                            <ul>
                                <li>Tables & Chairs</li>
                                <li>Sofas</li>
                                <li>Occasional Furniture</li>
                                <li>Children's Furniture</li>
                                <li>Beds</li>
                            </ul>
 
 
                        </li>
                        <li>
                            Decor
                            <ul>
                                <li>Bed Linen</li>
                                <li>Throws</li>
                                <li>Curtains & Blinds</li>
                                <li>Rugs</li>
                                <li>Carpets</li>
                            </ul>
                        </li>
                        <li>
                            Storage
                            <ul>
                                <li>Wall Shelving</li>
                                <li>Kids Storage</li>
                                <li>Baskets</li>
                                <li>Multimedia Storage</li>
                                <li>Floor Shelving</li>
                                <li>Toilet Roll Holders</li>
                                <li>Storage Jars</li>
                                <li>Drawers</li>
                                <li>Boxes</li>
                            </ul>
 
                        </li>
                        <li>
                            Lights
                            <ul>
                                <li>Ceiling</li>
                                <li>Table</li>
                                <li>Floor</li>
                                <li>Shades</li>
                                <li>Wall Lights</li>
                                <li>Spotlights</li>
                                <li>Push Light</li>
                                <li>String Lights</li>
                            </ul>
                        </li>
                    </ul>
                </li>
                 
                <li>
                    Blog
                </li>
                <li>
                    Company
                </li>
                <li>
                    Events
                </li>
                <li disabled="disabled">
                    News
                </li>
            </ul>
        <style>
        </style>
        <script>
            $(document).ready(function() {
                $("#menu").kendoMenu({
                            orientation: "vertical"
                        });
            });
           
        </script>
  <style>
    .k-menu-vertical /* for all horizontal menus */
{
   display: inline-block;
}
    .k-menu .k-i-arrow-60-right {
   display: none;
}
    </style>
 
 
</body>
</html>
Ivan Danchev
Telerik team
 answered on 05 Sep 2019
3 answers
172 views

Hi, 

I managed to combine something and have chart bound to same websocket ds as grid in your demo. 

Read method gets data and draws pie chart, but when I update data via grid, nothing happens.

After some investigation it seems, pushUpdate in transport causes error causing chart not to update.

on this part: 

  //Check what the push type is and invoke the corresponding callback.
                                if (result.type == "push-update") {
                                    options.pushUpdate(result);        
                              } 

This is error I get in demo:

kendo.all.js:7092 Uncaught TypeError: Cannot read property 'call' of undefined
    at Object.<anonymous> (VM30647 kendo.all.min.js:28)
    at Function.Deferred (VM30646 jquery.min.js:2)
    at init._promise (VM30647 kendo.all.min.js:28)
    at init._send (VM30647 kendo.all.min.js:28)
    at init.sync (VM30647 kendo.all.min.js:28)
    at init._change (VM30647 kendo.all.min.js:28)
    at init.d (VM30646 jquery.min.js:2)
    at init.trigger (VM30647 kendo.all.min.js:25)
    at o.<anonymous> (VM30647 kendo.all.min.js:27)
    at o.trigger (VM30647 kendo.all.min.js:25)

 

Is there any different approach I can/should take so I can have real time updates on the chart?

Thank you and regards,

Vedad

Viktor Tachev
Telerik team
 answered on 05 Sep 2019
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?