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

e.setValid(false) doesn't change e.valid in onDrop

1 Answer 84 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
JohnVS
Top achievements
Rank 1
JohnVS asked on 31 Jul 2013, 08:11 PM
We are using Kendo v2013.2.716. I have a simple Treeview on a page, and I have it linked to an onDrop function. In the function, I am checking to make sure the drop is allowed. If it is not allowed, I use e.setValid(false) like you guys have described elsewhere to do. I have confirmed that the e.setValid(false) statement is actually hit. But after I do this, I run console.log(e.valid) , and it seems to still be showing e.valid as true, even though I set it to false. Is this me misunderstanding how it works? Do I need to track an additional isValid variable myself? Just would have figured e.valid would keep the updated validity status. Thanks.

1 Answer, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 01 Aug 2013, 02:57 PM
Hello John,

A good observation! We have fixed it in today's internal build. As a small token of gratitude for pointing this out, your Telerik points have been updated.

Regards,
Alex Gyoshev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
TreeView
Asked by
JohnVS
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Share this question
or