Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
4032
Problem with two UltraDropDown dependent Columns
posted

I have two columns of style DropDownList. I have implemted this like it is advised in another post and example( handling BeforeCellListDropDown- and AfterCellUpdate-events). This works ok so far.

The the first drop-down contains two entries: DayOfWeek or DayOfMonth. If I do so the value list in the second drop-down is filtered properly and the user can choose a DayOfWeek Sunday ... Saturday (0..6) or DayOfMonth (1..31).

After saving the data, when the form comes up the next time, choosen DayOfMonth between 1 and 6 are displayed as DayOfWeek instead. In the drop down list, only 1..31 ist displayed, because this is filtered in the BeforeCellListDropDown event handler. Actually, the cell shows a value that is not in the list.

I set the column style to DropDownValidate in the Grid_InitiallizeLayout event-handler but does not help.

Which is the best way to solve this problem? Shoul I handle another event?

Thanks for any help.

Markus