Hi
I've notice strange behaviour of RadComboBox.
Case:
I have two ComboBoxes, one is RadComboBox and another is Microsoft VS2010 built in CBox.
There is no other difference between except first is Rad and second is not.
They are in same grid with exactly same DataContext, same binding (you have code attached) and there is couple another text fields as well.
If I try to change values of another fields by selecting item in RadComboBox nothing happened,
but if I try to do same with regular CBox, values in other fields are changing depend of item I'm selecting in regular CBox.
I wonder why and how to bypassing that because in my company I must and I want to use Telerik RadCBox.
I also attach picture to demonstrate this five steps:
1. Two comboBoxes , Rad nad MS
2. selecting something in Teleric C box
3. Nothing happened in other txt fields
4. selecting something in MS comboBox
5. Everything is changed in text boxes around
Am I doing something wrong???
Help.
Best Regards
Dejan
Code:
I've notice strange behaviour of RadComboBox.
Case:
I have two ComboBoxes, one is RadComboBox and another is Microsoft VS2010 built in CBox.
There is no other difference between except first is Rad and second is not.
They are in same grid with exactly same DataContext, same binding (you have code attached) and there is couple another text fields as well.
If I try to change values of another fields by selecting item in RadComboBox nothing happened,
but if I try to do same with regular CBox, values in other fields are changing depend of item I'm selecting in regular CBox.
I wonder why and how to bypassing that because in my company I must and I want to use Telerik RadCBox.
I also attach picture to demonstrate this five steps:
1. Two comboBoxes , Rad nad MS
2. selecting something in Teleric C box
3. Nothing happened in other txt fields
4. selecting something in MS comboBox
5. Everything is changed in text boxes around
Am I doing something wrong???
Help.
Best Regards
Dejan
Code:
<
Grid
DataContext
=
"{Binding ElementName=taxDomainDataSource, Path=Data}"
HorizontalAlignment
=
"Left"
Margin
=
"380,288,0,0"
Name
=
"grid2"
VerticalAlignment
=
"Top"
Width
=
"224"
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
Width
=
"Auto"
/>
<
ColumnDefinition
Width
=
"Auto"
/>
<
ColumnDefinition
Width
=
"24*"
/>
</
Grid.ColumnDefinitions
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"Auto"
/>
</
Grid.RowDefinitions
>
<
sdk:Label
Content
=
"Account ID:"
Grid.Column
=
"0"
Grid.Row
=
"0"
HorizontalAlignment
=
"Left"
Margin
=
"3"
VerticalAlignment
=
"Center"
/>
<
TextBox
Grid.Column
=
"1"
Grid.Row
=
"0"
Height
=
"23"
HorizontalAlignment
=
"Left"
Margin
=
"3"
Name
=
"accountIDTextBox1"
Text
=
"{Binding Path=AccountID, Mode=TwoWay, NotifyOnValidationError=true, ValidatesOnExceptions=true, TargetNullValue=''}"
VerticalAlignment
=
"Center"
Width
=
"120"
/>
<
sdk:Label
Content
=
"Code:"
Grid.Column
=
"0"
Grid.Row
=
"1"
HorizontalAlignment
=
"Left"
Margin
=
"3"
VerticalAlignment
=
"Center"
/>
<
telerik:RadComboBox
DisplayMemberPath
=
"Code"
Grid.Column
=
"1"
Grid.Row
=
"1"
HorizontalAlignment
=
"Left"
ItemsSource
=
"{Binding}"
Margin
=
"3,3,0,50"
Name
=
"codeRadComboBox"
VerticalAlignment
=
"Center"
Width
=
"120"
>
</
telerik:RadComboBox
>
<
sdk:Label
Content
=
"Description:"
Grid.Column
=
"0"
Grid.Row
=
"2"
HorizontalAlignment
=
"Left"
Margin
=
"3"
VerticalAlignment
=
"Center"
/>
<
TextBox
Grid.Column
=
"1"
Grid.Row
=
"2"
Height
=
"23"
HorizontalAlignment
=
"Left"
Margin
=
"3"
Name
=
"descriptionTextBox1"
Text
=
"{Binding Path=Description, Mode=TwoWay, NotifyOnValidationError=true, ValidatesOnExceptions=true, TargetNullValue=''}"
VerticalAlignment
=
"Center"
Width
=
"120"
/>
<
sdk:Label
Content
=
"ID:"
Grid.Column
=
"0"
Grid.Row
=
"3"
HorizontalAlignment
=
"Left"
Margin
=
"3"
VerticalAlignment
=
"Center"
/>
<
TextBox
Grid.Column
=
"1"
Grid.Row
=
"3"
Height
=
"23"
HorizontalAlignment
=
"Left"
Margin
=
"3"
Name
=
"iDTextBox2"
Text
=
"{Binding Path=ID, Mode=OneWay}"
VerticalAlignment
=
"Center"
Width
=
"120"
/>
<
sdk:Label
Content
=
"Sort Order:"
Grid.Column
=
"0"
Grid.Row
=
"4"
HorizontalAlignment
=
"Left"
Margin
=
"3"
VerticalAlignment
=
"Center"
/>
<
TextBox
Grid.Column
=
"1"
Grid.Row
=
"4"
Height
=
"23"
HorizontalAlignment
=
"Left"
Margin
=
"3"
Name
=
"sortOrderTextBox1"
Text
=
"{Binding Path=SortOrder, Mode=TwoWay, NotifyOnValidationError=true, ValidatesOnExceptions=true, TargetNullValue=''}"
VerticalAlignment
=
"Center"
Width
=
"120"
/>
<
sdk:Label
Content
=
"Tax Rate:"
Grid.Column
=
"0"
Grid.Row
=
"5"
HorizontalAlignment
=
"Left"
Margin
=
"3"
VerticalAlignment
=
"Center"
/>
<
TextBox
Grid.Column
=
"1"
Grid.Row
=
"5"
Height
=
"23"
HorizontalAlignment
=
"Left"
Margin
=
"3"
Name
=
"taxRateTextBox1"
Text
=
"{Binding Path=TaxRate, Mode=TwoWay, NotifyOnValidationError=true, ValidatesOnExceptions=true, TargetNullValue=''}"
VerticalAlignment
=
"Center"
Width
=
"120"
/>
<
sdk:Label
Content
=
"Tax Type:"
Grid.Column
=
"0"
Grid.Row
=
"6"
HorizontalAlignment
=
"Left"
Margin
=
"3"
VerticalAlignment
=
"Center"
/>
<
TextBox
Grid.Column
=
"1"
Grid.Row
=
"6"
Height
=
"23"
HorizontalAlignment
=
"Left"
Margin
=
"3"
Name
=
"taxTypeTextBox1"
Text
=
"{Binding Path=TaxType, Mode=TwoWay, NotifyOnValidationError=true, ValidatesOnExceptions=true, TargetNullValue=''}"
VerticalAlignment
=
"Center"
Width
=
"120"
/>
<
ComboBox
DisplayMemberPath
=
"Code"
Grid.Column
=
"1"
Grid.Row
=
"1"
HorizontalAlignment
=
"Left"
ItemsSource
=
"{Binding}"
Margin
=
"3,44,0,11"
Name
=
"code1ComboBox"
VerticalAlignment
=
"Center"
Width
=
"120"
/>
</
Grid
>