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

Any dropdown event which can be called before changing the value of dropdown

1 Answer 12 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mukesh
Top achievements
Rank 1
Mukesh asked on 02 Oct 2019, 10:46 AM

     Is there event for kendo drop down called before change. Before changing the value of dropdown i want to perform some validation and based on that only the value in dropdown should change.

Is there nay way ti achieve that.

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 03 Oct 2019, 06:16 AM

Hello, Mukesh,

When the DropDownList is in controlled mode, the onChange event will be called with the value, but the developer is responsible for actually changing it.

This gives the opportunity to perform validation, and decide if the value will actually change.

https://stackblitz.com/edit/react-xejvge?file=app/main.jsx

Regards,
Stefan
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Mukesh
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or