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

Cascade dropdownlist in edit mode of grid sends old value on the cascaded list

1 Answer 54 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sameh Awad
Top achievements
Rank 1
Sameh Awad asked on 24 Jan 2013, 07:07 PM
Hi,

I have a grid with 2 cascade dropdownlist. When I am in the edit mode of the grid using a popup, and i change the value of the parent dropdownlist, the second dropdownlist is repopulated correctly. But if the user doesn't choose anything from the second dropdownlist and just submits. The old value of the second dropdownlist is sent to the controller in the bound model. Although this seems correct by design since the user didn't actually change the value of the second dropdownlist but for data integration this is incorrect.

What I want to be able to do is change the value of the second dropdownlist when the first one changes into a default value of zero for example or null, so that it would trigger the validation error of the dropdownlist.

Best regards,
Sameh

1 Answer, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 28 Jan 2013, 02:02 PM
Hello Sameh,

I could suggest you to use the change event of the first DropDownList to set the value of the child DropDownLIst to a default one.

Kind regards,
Petur Subev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Sameh Awad
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Share this question
or