telerik radmaskedtextbox convention

Topics: Conventions
Jul 27, 2011 at 7:39 PM

 

I'm trying to define a caliburm micro convention for telerik RadMaskedTextBox control And tried this 

ConventionManager.AddElementConvention(RadMaskedTextBox.MaskedTextProperty, "MaskedText", "ValueChanged");

based on this URL:https://github.com/vcaraulean/Caliburn.Micro.Telerik/blob/master/Caliburn.Micro.Telerik/TelerikConventions.cs

 

I am trying to use MaskType="Standard" and Mask="(###) ### - ####" to display phone number.

This didn't worked though it is similar to basic text box convention.

Any direction is appreciated

Thanks- Rajesh cheedalla

Coordinator
Jul 27, 2011 at 10:01 PM

Have you looked at the Caliburn.Micro.Telerik nuget package? I think it has some standard conventions. You might get some ideas there.

Jul 29, 2011 at 6:24 AM

Thank you for your quick response.

I opened a ticket with Telerik requesting for some insight on RadMaskedTextBox if there are any hidden events/properties causing convention not getting recognized etc., and they suggested to try with RadMaskedTextInput instead and it worked with basic convention

here is the convention for RadMaskedTextInput:

   ConventionManager.AddElementConvention<RadMaskedTextInput>(RadMaskedTextInput.ValueProperty, "Value", "ValueChanged");         

   ConventionManager.AddElementConvention<RadMaskedTextInput>(RadMaskedTextInput.MaskProperty, "Mask", "ValueChanged");

I will send this to VCarauelan who is responsible for Caliburn.Micro.Telerik nuget package.

 

Also there is a convention defined for RadWindow

http://www.telerik.com/community/code-library/silverlight/general/radwindow-in-caliburn-micro.aspx

Thank you,

RajeshC