I have a DataForm in which there are two DataFormComboBoxField, one for the governorate and one for the delegation, and when I select a governorate in the first combo box, the ItemSource the 2nd combobox should contain the list of delagations that belongs to the selected governorate.
Thank you for your reply, it was very beneficial, but is there a possibility to do things in view model instead of codebehind.
thank you
0
Ivan Ivanov
Telerik team
answered on 13 May 2016, 08:33 AM
Hi,
The suggested approach is purely event driven and it won't be easy to translate the event handlers to ViewModel commands, as class level event handler is used to process RadComboBox.SelectionChangedEvent occurrences. However, you can still remove this code from the view's code behind, by wrapping the logic in an attached behavior class.
Regards,
Ivan Ivanov
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.