RadInsertHyperlinkDialog is missing masked textbox after upgrade

2 posts, 0 answers
  1. Rick
    Rick avatar
    2 posts
    Member since:
    Jan 2009

    Posted 09 Sep 2014 Link to this post

    We recently upgraded to the newest version of the silverlight controls. In our code we find a RadMaskedTextBox in the RadInsertHyperlinkDialog, and attach a context menu item to it through code.
    RadMaskedTextBox txtText = (dialog.Content as Grid).ChildrenOfType<RadMaskedTextBox>().ToArray()[0];

    However, the dialog no longer has any RadMaskedTextBox controls in it, so our code is broken. I am not too familiar with the controls, and can't see the actual dialog to find a work around.

    Any ideas on how to attach a custom context menu to an item in the dialog?



  2. Petya
    Petya avatar
    989 posts

    Posted 12 Sep 2014 Link to this post

    Hi Rick,

    I'm not sure what the version you upgraded from is, but the RadMaskedTextBox has been removed from the Insert Hyperlink dialog in 2011. In fact, the control was just recently removed from the Silverlight suite altogether, so if you are using it somewhere else in your application you would need to migrate to RadMaskedInput

    In the place of the masked input in the dialog there is now a TextBox control, so you can attach your context menu to it. Since it's not the only TextBox in the dialog you might want to try a different approach for determining which control exactly you need, for example:
    TextBox txtText = (dialog.Content as Grid).FindName("txtAddress") as TextBox;

    I hope this is useful.

    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
Back to Top