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

EmptyMessage issue with Opera

9 Answers 49 Views
Input
This is a migrated thread and some comments may be shown as answers.
Dheeraj
Top achievements
Rank 1
Dheeraj asked on 28 Nov 2012, 01:39 PM
Hi ,

I have written a code as :

 <telerik:RadTextBox ID="txtCustomerName" runat="server" EmptyMessage="Please enter customer name"
                            CssClass="SetText" ToolTip="Please enter customer name" EnableSingleInputRendering="True"
                            MaxLength="20" Width="130" TabIndex="2">

So when i click on submit button in Opera browser a popup message shows as " The entered text is too large! You used 26 letters and the limit is 20."

How to resolve this issue.

9 Answers, 1 is accepted

Sort by
0
Vasil
Telerik team
answered on 28 Nov 2012, 02:50 PM
Hello Dheeraj,

Place required field validator to validate your input, it will execute before the submit and if the input is empty the form will not submit, opera's message will not be displayed.

Or place shorter text for the empty message.

Greetings,
Vasil
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Dheeraj
Top achievements
Rank 1
answered on 28 Nov 2012, 03:23 PM
Hi Vasil,

I can not do both thing as i wants that greater than that text should not be typed. And this is just a one example at other place i need to show long message in EmptyMessage. Please provide more appropriate solution for this.


Thanks
Dheeraj
0
Vasil
Telerik team
answered on 02 Dec 2012, 01:47 PM
Hello Dheeraj,

You could try to remove the max length on blur of the textbox.
Also note that I tested the same scenario in our demos here:
http://demos.telerik.com/aspnet-ajax/input/examples/radtextbox/firstlook/defaultcs.aspx
Click show button (to be able to submit the form), select short max length and try to submit using opera, I do not get any alert on doing this.
Do you have some additional code in your project to show some alert?

Regards,
Vasil
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Dheeraj
Top achievements
Rank 1
answered on 03 Dec 2012, 04:55 AM
Hi Vasil,

The scenario will happen with Opera (Latest version of opera) and put MaxLength less then EmptyMessage text. For example Put EmptyMessage in 40 chart and maxLength as less then 40.


Please need solution as i can not define EmptyMessage lesser while file typing text i need to restrict.

Thanks in Advance
Dheeraj
0
Vasil
Telerik team
answered on 04 Dec 2012, 11:30 AM
Hi Dheeraj,

Here is test with the latest version of Opera, and I still don't get any message during submit:
http://screencast.com/t/0vYC7H1hNF1K
Do you have set some custom settings in your browser? Or do you have any custom scripts in your page that might cause the alert?

Kind regards,
Vasil
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Dheeraj
Top achievements
Rank 1
answered on 04 Dec 2012, 02:32 PM
Hi Vasil,

May be you postback is too fast that you are not able to see the message. There is definitely an issue. Please see the screen http://www.screencast.com/t/HEqo1t3Kfu28. Please see the red pop message shown.

Thanks & Regards
Dheeraj Swami
0
Vasil
Telerik team
answered on 04 Dec 2012, 04:51 PM
Hi Dheeraj,

Try to run this code in an empty web site:

<telerik:RadTextBox EmptyMessage="empty message" runat="server" MaxLength="5"></telerik:RadTextBox>
<asp:Button runat="server" Text="click" />

If you get the same alert, then the problem is in your Opera settings, or you have some addons that are changing your browser behaviour.

If you don't get the alert, then it comes from custom JavaScript that you have placed in your original page.

Regards,
Vasil
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Dheeraj
Top achievements
Rank 1
answered on 06 Dec 2012, 09:35 AM
Hi Vasil,

Yes, there is problem with telerik control. Please fine below screnshot in which i have and login control (no telerik control in it) and one telerik control. There is no specific setting of opera. With latest opera browser i have problem as because latest opera started as that browser started reading MaxLenth. Please see this : http://www.screencast.com/t/mEt8su1TzJN


Thanks
Dheeraj
0
Vasil
Telerik team
answered on 07 Dec 2012, 05:39 PM
Hi Dheeraj,

You could use RadInputManager as alternative to RadTextBox to avoid this popup in Opera. The manager switch the value of the inputs just before the form submit, and the opera's validation should not be triggered.

We will investigate the issue further, although we have already tested it on several machines with the latest opera and there was no such popup.

All the best,
Vasil
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Input
Asked by
Dheeraj
Top achievements
Rank 1
Answers by
Vasil
Telerik team
Dheeraj
Top achievements
Rank 1
Share this question
or