I have some validations that are dependent on other controls. As an example, let's say I have a textbox where I want the traditional tab off (lost focus) behavior of the textbox to validate ... as well as when a checkbox is selected. In the checkbox_checked event I can do the following to force an update:
I would like to do something similar with a RadComboBox. There is a situation where I'd like to force a validation from a different component as well as doing the lost focus of the RadComboBox in question. I've attempted something similar to the above, but to no avail:
I've also tried:
It appears that no matter what property I try to grab, the returned BindindExpression is always null. Is there a way to accomplish what I'm trying to do?
BindingExpression be = tb.GetBindingExpression(TextBox.TextProperty);
be.UpdateSource();
I would like to do something similar with a RadComboBox. There is a situation where I'd like to force a validation from a different component as well as doing the lost focus of the RadComboBox in question. I've attempted something similar to the above, but to no avail:
BindingExpression be = rcb.GetBindingExpression(Telerik.Windows.Controls.RadComboBox.TextProperty); be.UpdateSource();
I've also tried:
Telerik.Windows.Controls.RadComboBox.SelectedItemProperty
etc. It appears that no matter what property I try to grab, the returned BindindExpression is always null. Is there a way to accomplish what I'm trying to do?