Telerik Forums
Kendo UI for jQuery Forum
1 answer
152 views

I am running the current version, 2023.1.425.

The control is actually first created through asp.net core MVC, however I'm using the CustomCommand method as such. Please note the window is already initialized prior to this. Upon the first use of my custom "Tags" context menu, the window opens and I'm able to carry out operations as expected. After closing the window, and attempting to open it again, I get an error in the browser console.

var filemanagerNS = kendo.ui.filemanager;
        filemanagerNS.commands.MyCustomCommand = filemanagerNS.FileManagerCommand.extend({
          exec: function(){
                 var FileIDs = Array();
                 var i = $('#filemanager').getKendoFileManager().getSelected();
                 $(i).each(function(){
                     if (!this.isDirectory)
                        FileIDs.push(this.ID);
                 });

                if (FileIDs.length > 0) {
                    // we'd call up our modal here populated with some kind of tag manager
                    $.post( "/Tags", { "FileIDs": FileIDs }, function( data ) {
                        $("#frmmodal").html(data).data("kendoWindow").open();
                    });
                 }
          }
        });


This works the first time, but attempting to open the window again results in the following error:

Uncaught TypeError: n.filemanager.commands[t] is not a constructor
    at init.executeCommand (kendo.all.js:318819:21)
    at init.trigger (kendo.all.js:318819:21)
    at init.action (kendo.all.js:318819:21)
    at init._onSelect (kendo.all.js:318819:21)
    at init.trigger (kendo.all.js:318819:21)
    at init._triggerEvent (kendo.all.js:318819:21)
    at init._triggerSelect (kendo.all.js:318819:21)
    at init._click (kendo.all.js:318819:21)
    at HTMLUListElement.dispatch (jquery.min.js:3:12445)
    at r.handle (jquery.min.js:3:9174)

 

As a result, the component stops functioning entirely, not just the context menu -> window method that seems to be causing this.

Martin
Telerik team
 answered on 17 May 2023
0 answers
116 views

TLDR: Never mind, user error

It seems that whether I specify labels: { visible: 'false' } or labels: { visible: 'true' }, the label is always displayed. I would have expected that specifying false would not cause the label to display. Specifying another option, such as labels: { format: '{0:C0}' }, does not cause the label to display.

Here is a dojo demonstrating the issue. Note that both the second and third bars display labels, even though the second bar has visible set to false. The first bar, specifying a format for the label, does not have its labels displayed.

Jay
Top achievements
Rank 3
Iron
Iron
Veteran
 updated question on 16 May 2023
1 answer
101 views

Hi, we have a requirement to customise the month view of the scheduler. We are developing a system for users to log their on-call hours and overtime. Our pay month starts on the 24th through to the 23rd of the following month. 

Is there a way customise the month view so that if Jan is selected it displays from Jan 24th through to Feb 23rd... if Feb is selected it displays from Feb 24th to March 23rd etc.

When viewing a month any dates outside the range should be disabled so for example if viewing May 2023 where May 24th is a Wednesday and the week begins on Mondays then May 22nd and 23rd would be disabled and as Jun 23rd is a Friday June 24th and 25th would be disabled.

Many thanks

Attached are examples I was able to do using FullCalendar JS by AR Shaw but I would prefer to use Kendo.

Nikolay
Telerik team
 answered on 16 May 2023
1 answer
162 views

Hello,

How do change the header color, for each cards like the picture,

 

Thanks

Christophe

Nikolay
Telerik team
 answered on 15 May 2023
1 answer
144 views

Hi,

We are looking into ways on how we can globally Html Sanitize/Purify anything that is rendered on a Kendo Grid. We are looking into the following options:

1. Create a custom widget that extends the Kendo Grid

2. Globally tap into databinding event

It would be awesome if the second option is possible.

Nikolay
Telerik team
 answered on 15 May 2023
1 answer
118 views
I am in the process of upgrading an old application that is using Kendo 2016.1.112 and I tried to upgrade to the latest but having some CSS issues. This application is also using Bootstrap 2.3.2, so I am curious if it is compatible at all before digging too deep into the issue. 
Nikolay
Telerik team
 answered on 15 May 2023
2 answers
544 views
Hello,
I use Kendo UI Angular,
I have a kendomulticombobox in a form, I use this combobox in several forms, and to avoid copying and pasting, I thought of setting up a separate component for that, and just call it each time I need.
It's to say that the form has a formgroup, and that this formgroup has several formcontrols, that I get when I submit the form.
So when I integrate my custom component, I get an error `ERROR Error: No value accessor for form control with name:` and yet it's the same formcontrol that I use before.

Has anyone experienced this kind of problem? Or do you have any solutions please? Thanks

Henintsoa
Top achievements
Rank 1
Iron
 updated answer on 15 May 2023
1 answer
773 views

I have a grid where the rows are selectable and I need a way to add a new row above the selected row.

Is there an example on how to achieve this?

Neli
Telerik team
 answered on 15 May 2023
1 answer
139 views

Hello,

Please see the following example: https://dojo.telerik.com/UsIQijOG/10

Reproduction steps:

  1. Open the console.
  2. Run the program
  3. Press the button.
  4. Enter "Test" into the Name field.
  5. Press submit.
  6. The name field in the console is empty.

Expected:

  1. The name field in the console is databound to the textbox in the window.
  2. The name field should be populated with the value entered into the name textbox.

 

Thanks,

Graham

Georgi Denchev
Telerik team
 answered on 12 May 2023
1 answer
451 views

Our current Kendo UI version is 2022.2.510 and it is being upgraded to version 2023.1.425. The jQuery version which we are currently using is While upgrading we encountered some problems that some files have been removed/moved. We encountered an error suggesting that kendo.common-material.css file could not be resolved, after resolving that issue we came across another issue suggesting that kendo.core.js file could not be found. Please find the relevant screenshot attached below and assist with what we should do here.

Additional information:  "@types/jquery": "3.3.31"

And it will be more convenient if there is a changelog provided for what changes occurred between these versions, so if there is please do provide.

 

 

 

Patrick | Technical Support Engineer, Senior
Telerik team
 answered on 11 May 2023
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?