Hi,
I Added a Bug report to the Issue-tracker some Hours ago.
My Problem was that i used RadWindow.ResponseButton and DataBinding together.
When i for typed text in a TextBox inside a RadWindow and then pressed
enter without changing the Focus, my Model is not updated when the Click
event of the button is invoked.
The update is done when the Click event is already completed.
For Myself i have found a Solution, but i think that other users
may have the same problem and can take part of my solution.
I made a small change in the RadWindow.InvokeButton method in the
Telerik Sourcecodes
i Added this just before the "button.Focus()" line to force to
update the Bindings of the currently Focussed Control.
I Added a Bug report to the Issue-tracker some Hours ago.
My Problem was that i used RadWindow.ResponseButton and DataBinding together.
When i for typed text in a TextBox inside a RadWindow and then pressed
enter without changing the Focus, my Model is not updated when the Click
event of the button is invoked.
The update is done when the Click event is already completed.
For Myself i have found a Solution, but i think that other users
may have the same problem and can take part of my solution.
I made a small change in the RadWindow.InvokeButton method in the
Telerik Sourcecodes
i Added this just before the "button.Focus()" line to force to
update the Bindings of the currently Focussed Control.
FrameworkElement fe = FocusManager.GetFocusedElement()
as
FrameworkElement;
if
(fe !=
null
)
{
foreach
(var dependencyProperty
in
fe.GetDependencyProperties())
{
BindingExpression be = fe.GetBindingExpression(dependencyProperty);
if
(be !=
null
)
{
be.UpdateSource();
}
}
}
Greets,
Carsten