EmptyMessage issue with Opera

10 posts, 0 answers
  1. Dheeraj
    Dheeraj avatar
    9 posts
    Member since:
    Jun 2012

    Posted 28 Nov 2012 Link to this post

    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.
  2. Vasil
    Admin
    Vasil avatar
    1547 posts

    Posted 28 Nov 2012 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Dheeraj
    Dheeraj avatar
    9 posts
    Member since:
    Jun 2012

    Posted 28 Nov 2012 Link to this post

    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
  5. Vasil
    Admin
    Vasil avatar
    1547 posts

    Posted 02 Dec 2012 Link to this post

    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.
  6. Dheeraj
    Dheeraj avatar
    9 posts
    Member since:
    Jun 2012

    Posted 02 Dec 2012 Link to this post

    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
  7. Vasil
    Admin
    Vasil avatar
    1547 posts

    Posted 04 Dec 2012 Link to this post

    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.
  8. Dheeraj
    Dheeraj avatar
    9 posts
    Member since:
    Jun 2012

    Posted 04 Dec 2012 Link to this post

    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
  9. Vasil
    Admin
    Vasil avatar
    1547 posts

    Posted 04 Dec 2012 Link to this post

    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.
  10. Dheeraj
    Dheeraj avatar
    9 posts
    Member since:
    Jun 2012

    Posted 06 Dec 2012 Link to this post

    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
  11. Vasil
    Admin
    Vasil avatar
    1547 posts

    Posted 07 Dec 2012 Link to this post

    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017