This is a migrated thread and some comments may be shown as answers.

RadTabControl problem with Converter (System.Windows.Data.IValueConverter)

3 Answers 72 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
Gianluca
Top achievements
Rank 1
Gianluca asked on 26 Sep 2011, 12:13 PM
Good morning.
In a Silverlight control, I have a grid, in which load my ViewModel:

Example: <Grid DataContext="{StaticResource ViewModelMy}"> ...</ Grid>


Inside the Grid, there is a RadTabControl, with various tabs. There are tabs in the TextBox controls that are related to the converter.

Example: <TextBox Text="{Binding UserEmail, Converter={StaticResourceConverterEmail}, Mode=TwoWay}" />

There is a problem. The converter only works the first time that I change the value of theTextBox. In later times, the value is not checked.
This problem only when the TextBox verirfica are contained in RadTabControl.

Can you help?

Best Regards
Gianluca

3 Answers, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 29 Sep 2011, 12:06 PM
Hi Gianluca,

 You mentioned that you use Verification ( or Validation probably?) in the TextBox? Could you please send us more from your code ( XAML, ViewModels, Validation Code) so that we would be better able to investigate this ? Have you considered using the RadMaskedTextInput control ? Thank you in advance.

Greetings,
Petar Mladenov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Gianluca
Top achievements
Rank 1
answered on 29 Sep 2011, 01:02 PM
Hi and thanks for your answer.
I tried to use any control, including control RadMaskedTextInput.
The problem is this: any control that is contained inside an  RadTabControl, when associating  a converter with it , it  changes the value only once, the second time doesn't work.

Example: I might have a converter that erases the time (hh: mm: ss) to a date. If I am writing 01/01/2011 00:00:00. The first  time I write it converts the date in this format 01/01/2011. The next time it does not change and remains as follows 01/01/2011 00:00:00.

This happens only when the controls, associated with a converter, are contained in a RadTabControl.

If I was not clear, you can tell me, and I will send you more code.
0
Petar Mladenov
Telerik team
answered on 04 Oct 2011, 10:06 AM
Hi Gianluca,

 I was unable to reproduce this issue. Could you please check out my test project and let me know if I have missed something? You could also modify it and send it back to me. Thank you for your cooperation.

Kind regards,
Petar Mladenov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
TabControl
Asked by
Gianluca
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Gianluca
Top achievements
Rank 1
Share this question
or