Hello Telerik,
I have one clarification in radcombobox..
How to get Values when Focus is in RadcomboBox?
In XAML i am setting UpdateSourceTrigger=LostFocus..
if suppose focus is in Radcombobox and client will save the detail.That time radcombobox value not getting..
in this project i am using radmenu for displaying Save,Modify Items..If suppose Focus is in TextBox mean i am Updating manually from the following Code..
My problem is i want to Update radComboBox also
The above code i am changing RadComboBox instead of TextBox..But its not working...
I find Debugging in runtime
KeyBoard.FocusedElement.GetType() value is PickerTextBox... But focus is in radComboBox
I don't know why pickerTextBox Comes instead of radcomboBox ?
How to update radCombobox value? any suggestions are more welcome...
(I know UpdateSourceTrigger=PropertyChanged .Here i don't want Bcoz i am doing validation in Business object level.
if suppose i am using Property changed each and every character its goes validation thats why i am avoiding..)
I have one clarification in radcombobox..
How to get Values when Focus is in RadcomboBox?
<
telerik:RadComboBox
IsEditable
=
"True"
Text
=
"{Binding Path=District,Mode=TwoWay, UpdateSourceTrigger=LostFocus, NotifyOnValidationError=True, ValidatesOnDataErrors=True, ValidatesOnExceptions=True}"
Margin
=
"103,5,33,0"
Name
=
"rcboDistrict"
TabIndex
=
"8"
FontSize
=
"11"
IsDropDownOpen
=
"False"
Grid.Column
=
"2"
Grid.Row
=
"1"
VerticalAlignment
=
"Top"
Height
=
"24"
/>
if suppose focus is in Radcombobox and client will save the detail.That time radcombobox value not getting..
in this project i am using radmenu for displaying Save,Modify Items..If suppose Focus is in TextBox mean i am Updating manually from the following Code..
this.Dispatcher.BeginInvoke(new Action(() =>
{
if (Keyboard.FocusedElement.GetType() == typeof(TextBox))
{
BindingExpression exprLastName = ((TextBox)Keyboard.FocusedElement).GetBindingExpression(TextBox.TextProperty);
exprLastName.UpdateSource();
}
//Implementation
}));
My problem is i want to Update radComboBox also
The above code i am changing RadComboBox instead of TextBox..But its not working...
I find Debugging in runtime
KeyBoard.FocusedElement.GetType() value is PickerTextBox... But focus is in radComboBox
I don't know why pickerTextBox Comes instead of radcomboBox ?
How to update radCombobox value? any suggestions are more welcome...
(I know UpdateSourceTrigger=PropertyChanged .Here i don't want Bcoz i am doing validation in Business object level.
if suppose i am using Property changed each and every character its goes validation thats why i am avoiding..)