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

TextWrapping Not Working Since Update

2 Answers 194 Views
MaskedInput (Numeric, DateTime, Text, Currency)
This is a migrated thread and some comments may be shown as answers.
Benedikt
Top achievements
Rank 3
Iron
Iron
Iron
Benedikt asked on 23 Sep 2019, 02:10 PM

Hi together,

I have previously used the following lines to get the MaskedTextInput to wrapp the text.

I have no installed the last update (R3) and now it says: "The object reference is not declared onto a object instance."

The code still works but in the designer it marks it as wrong and doesn't update the preview anymore.

 

If I let the BasedOn apart it shows everything as it should bot the code not works anymore as it should. So the MaskedInput is empty and I can't click it anymore.

Without Wrapping the too long lines, well, are too long.

 

  <telerik:RadMaskedTextInput.TextBoxStyle>
                                        <Style TargetType="maskedInput:PreviewInputTextBox" BasedOn="{StaticResource MaskedInputTextBoxStyle}">
                                            <Setter Property="TextWrapping" Value="Wrap" />
                                            <Setter Property="AcceptsReturn" Value="True" />
                                        </Style>
                                    </telerik:RadMaskedTextInput.TextBoxStyle>

 

Greetings,

Benedikt


2 Answers, 1 is accepted

Sort by
0
Accepted
Dilyan Traykov
Telerik team
answered on 24 Sep 2019, 12:46 PM

Hi Benedikt,

Thank you for the provided code snippet.

Based on it, I've prepared a small sample project which uses our latest update (R3), however, I do not observe the error you described.

Can you please have a look at the attached project and let me know if the error is displayed at your end? If that is the case, please let me know which version of Visual Studio you're using as well as whether clearing the shadow cache of the program provides a different result.

If the sample project runs without any errors on your machine, please let me know how it differs from the one you're running and if possible, try to modify it to replicate the error message.

Thank you in advance for your cooperation on the matter. I will be looking forward to your reply.

Regards,
Dilyan Traykov
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Benedikt
Top achievements
Rank 3
Iron
Iron
Iron
answered on 25 Sep 2019, 06:14 AM

Hi Dilyan,  clearing the cache was the solution. Never had to do so. 

Thank you.

 

Greetings

Benedikt

Tags
MaskedInput (Numeric, DateTime, Text, Currency)
Asked by
Benedikt
Top achievements
Rank 3
Iron
Iron
Iron
Answers by
Dilyan Traykov
Telerik team
Benedikt
Top achievements
Rank 3
Iron
Iron
Iron
Share this question
or