Telerik Forums
Kendo UI for jQuery Forum
10 answers
752 views

Good day!

I have a context menu that is appearing when you right-click tree view nodes. Now the option in the context menu and its sub-menu is dependent with the node type.

My problem is, when I hover an option with a sub-menu, it always display the sub-menu to the left side of its parent and its being cutoff by the screen border. I tried different configuration for 'direction', 'orientation', 'popupCollision' and I can't seem to solve this issue.

In the attached file, I want to show the sub-menu on where the red rectangle is.

$('#nav_tree_menu').kendoContextMenu({
    target: "#nav_tree",
    filter: 'span.k-in',               
    alignToAnchor: true,                           
    select: function(e) {
        // nodeData (src), item (target)
        ...
        ...
    },
    open: function(e) {                
        if ($(e.item).is("li")) {                      
            return;
        }
 
        var node = $(e.target);
        var nodeData = treeView.dataItem(node);                
 
        ...
        // this is where the options based on the node "type"
 
        this.setOptions({
            dataSource: options                    
        });                    
    }
});

 

Thank you!

Ollie dG.

 

Ivan Danchev
Telerik team
 answered on 26 Mar 2019
4 answers
320 views

Hello everyone,

I stumbled upon some strange behaviour using a form containing kendoComboBoxes with the latest FireFox. If I return to the form after loading another page and pressing the browser's page back button, the text of the previously choosen options wont be displayed, just the placeholders. The combo boxes still hold their values because the clearButton shows on mouseOver and the data will be posted, it's just that the text is not being displayed. This problem does not occur with another browser such as Chrome or another widget such as kendoDropDownTree. Does anyone know if this is a known bug or has encountered this issue also?

Thanks in advance.

 

Boris
Top achievements
Rank 1
Iron
 answered on 26 Mar 2019
3 answers
1.5K+ views

I was looking at the demos and playing around with the upload control.  It seems that its designed to either be File uploads or Directory uploads, not do both at the same time. It seems we would would have to have two buttons one to allow choosing files and one to allow choosing a directory. The same with drop locations we could have a custom zone that accepts files and we would have to have another custom zone that only accepts a directory.

Below are some scenarios to help explain. I would love to know if all of these scenarios are possible and if so how. If they all of them are not then I would like to know what the reasoning is behind this limitation.

Scenario One

The user click an "upload" button that they can choice either 1 or more files, or 1 or more directories and the control will handle uploading all of them

Scenario Two
The user drags some files to a drop location and it detects they are files and uploads

Scenario Three
The user drags one or more directories to the same drop location as above and it detects they are directories and uploads the files represented within

Uwe
Top achievements
Rank 1
 answered on 26 Mar 2019
7 answers
463 views

Hello,

recenlty on Chrome dev console warning started to appear about deprecation of document.registerElement method

[Deprecation] document.registerElement is deprecated and will be removed in M73, around March 2019. Please use window.customElements.define instead. See https://www.chromestatus.com/features/4642138092470272 for more details.

When I checked what would happen if this function is no longer available, our application crashed. We have custom bundle so according to this: https://github.com/telerik/kendo-ui-core/issues/4675 the solution would be to upgrade R1.2019 when it will be available.

So my question is when this version is planned to be available, or do you know if upgrading to current latest version would solve this problem?

Alex Hajigeorgieva
Telerik team
 answered on 26 Mar 2019
1 answer
257 views

Kendo controls on my website have stopped working after chrome updated to version 73

See attached image of @Html.Kendo().DateTimePickerFor controls and @Html.Kendo().Grid

Kendo version is 2016.1.412

Konstantin Dikov
Telerik team
 answered on 26 Mar 2019
10 answers
2.5K+ views

Hello,

I am trying to filter datasource on multiple fields. 

Below is my Filter 1 - 
  var _flt = { logic: "or", filters: [] };
        $("#mySelection").find(':checkbox').each(function () {
            if (this.checked) {
                _flt.filters.push({ field: "TypeID", operator: "eq", value: parseInt(this.value) });
            }
        });       
        dataSource1.query({ filter: _flt});

The above javascript code works great when filtering on 1 field. 

I am trying to add one more filter, the below filter should do a logical and to the results from first filter. 

var _fltStatus = { logic: "or", filters: [] };
        $("#myStatusSelection").find(':checkbox').each(function () {
            if (this.checked) {
                _fltStatus.filters.push({ field: "StatusID", operator: "eq", value: parseInt(this.value) });
            }
        });
       
dataSource1.query({ filter: _fltStatus });


Basically what I want is 

(TypeID  = 1 OR TypeID  = 2 OR TypeID  = 3) AND  (StatusID = 1 OR StatusID = 2)

I am trying to do local filtering. Please let me know if this is doable.

Thanks,



Christos
Top achievements
Rank 1
 answered on 26 Mar 2019
3 answers
666 views

Hello,

I have one custom grid and in each cell I have one comboBox.On combobox open event I load the data to datasource from api but if server returns no content or bad request combobox loader is not getting stop.So how to stop manually loader if there is error while getting data from api.

Ivan Danchev
Telerik team
 answered on 25 Mar 2019
2 answers
156 views

Hello!

 

I want to customize the style for my line series, but this only seems to be possible for "area" type and not for "line".

Here I have an example: https://dojo.telerik.com/AlekeFUB

I wanted to set the style as "step". When I set the series type as "area", it works fine, but if I change it to "line", the step style is not applied anymore. I know I can achieve this with seriesDefaults, but I want to set different line style to different serie. Is it possible to do so?

 

Thank you,

Iuliana Maria Candea

Iuliana Maria
Top achievements
Rank 1
Iron
 answered on 25 Mar 2019
1 answer
346 views

Despite setting the tab strip to wrap, I'm seeing some inconsistency. 

var tabStrip = $("#TabStripPatientDetails").kendoTabStrip().data('kendoTabStrip');
tabStrip.scrollable = false;

Specifically, hitting refresh seems to switch the tabstrip to scroll.  Is there another setting I need to tweak?

 

 

Marin Bratanov
Telerik team
 answered on 22 Mar 2019
7 answers
1.3K+ views
In our application we have a virtual scrollable grid. We have implemented a function to refresh the grid data from the server by calling the datasource's "read" method. While this works to refresh the grid data, a side effect is that if you are in a certain position of a (virtual) page, the grid re-positions itself after the loading has completed. I've described it as well as I could but maybe an example will help. 

See fiddle: 
http://jsfiddle.net/kennymatic/jH2Lw/3/

scroll down a couple hundred records, and then click the "refresh" link, note the change in grid position. 

The question is, is calling the datasource.read() method the only way to refresh the data, if so is the re-positioning an issue of the grid that will be fixed or can you recommend any other workarounds? 
Alex Hajigeorgieva
Telerik team
 answered on 22 Mar 2019
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?