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

4 posts, 0 answers
  1. Gianluca
    Gianluca avatar
    5 posts
    Member since:
    Jul 2012

    Posted 26 Sep 2011 Link to this post

    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
  2. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 29 Sep 2011 Link to this post

    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 >>

  3. DevCraft banner
  4. Gianluca
    Gianluca avatar
    5 posts
    Member since:
    Jul 2012

    Posted 29 Sep 2011 Link to this post

    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.
  5. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 04 Oct 2011 Link to this post

    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 >>

Back to Top