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

RadInsertHyperlinkDialog is missing masked textbox after upgrade

1 Answer 9 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Rick
Top achievements
Rank 1
Rick asked on 10 Sep 2014, 12:04 AM
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.
RadInsertHyperlinkDialog
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?

Thanks,

Rick

1 Answer, 1 is accepted

Sort by
0
Petya
Telerik team
answered on 12 Sep 2014, 02:33 PM
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.

Regards,
Petya
Telerik
 
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.
 
Tags
RichTextBox
Asked by
Rick
Top achievements
Rank 1
Answers by
Petya
Telerik team
Share this question
or