This is a migrated thread and some comments may be shown as answers.

setStatusClass k-denied not working

4 Answers 264 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Simon
Top achievements
Rank 1
Simon asked on 11 Jul 2017, 10:54 PM

We just upgraded from Kendo 2016.2 to 2017.2.621 and it's seems like we can't use the setStatusClass from the drag event anymore.  The documentation says that the naming convention has changed starting with version 2016.3.914 but I've tried every pattern possible involving the k and the i without success.  None of the provided value used enabled the k-denied icon.  Also, calling setStatusClass with k-denied use todo the same job as calling a e.setValid(false); on the drop event... this ain't working anymore.

Here's a snippet that reproduce the problem.

4 Answers, 1 is accepted

Sort by
0
Simon
Top achievements
Rank 1
answered on 12 Jul 2017, 08:18 PM

It seems like the pre-defined status classes was changed from k-denied to k-i-cancel

The documentation has updated the example but it still refers to k-denied for the setStatusClass function

0
Ivan Danchev
Telerik team
answered on 13 Jul 2017, 02:17 PM
Hello Simon,

Indeed the documentation currently does not list the pre-defined classes after the change in version 2016.3.914, which are: "k-i-insert-up", "k-i-insert-down", "k-i-cancel", "k-i-plus". We will update it accordingly, in order to avoid any confusion in the future. Thank you for pointing this out.

Regards,
Ivan Danchev
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Tony
Top achievements
Rank 2
answered on 13 Jun 2020, 06:37 PM

I believe this documentation remains out of date.

 

https://docs.telerik.com/kendo-ui/controls/navigation/treeview/how-to/nodes/prevent-dragging-to-root-level

0
Ivan Danchev
Telerik team
answered on 17 Jun 2020, 06:34 AM

Hello Anthony,

The drag event API documentation is already updated with information about the new classes, however, the HowTo article you linked still shows the old class. I'll change it there as well. Thank you for reporting this.

Regards,
Ivan Danchev
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
TreeView
Asked by
Simon
Top achievements
Rank 1
Answers by
Simon
Top achievements
Rank 1
Ivan Danchev
Telerik team
Tony
Top achievements
Rank 2
Share this question
or