Empty Message Issues

3 posts, 0 answers
  1. Stuart Hemming
    Stuart Hemming avatar
    1622 posts
    Member since:
    Jul 2004

    Posted 16 Jun 2009 Link to this post

    Run this page ...

    1 <html xmlns="http://www.w3.org/1999/xhtml" > 
    2 <head runat="server"
    3     <title></title
    4 </head> 
    5 <body> 
    6     <form id="form1" runat="server"
    7     <telerik:RadScriptManager ID="RadScriptManager1" runat="server"
    8     </telerik:RadScriptManager> 
    9     <div> 
    10       <telerik:RadTextBox ID="RadTextBox1" runat="server" EmptyMessage="Drag text on to me"
    11       </telerik:RadTextBox><asp:Label ID="Label1" runat="server" Text="Label"></asp:Label> 
    12       <br /> 
    13       <telerik:RadTextBox ID="RadTextBox2" runat="server" TextMode="Password" EmptyMessage="Enter Password"
    14       </telerik:RadTextBox><asp:Label ID="Label2" runat="server" Text="Label"></asp:Label> 
    15       <br /> 
    16        
    17       <asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click" /> 
    18     </div> 
    19     </form> 
    20 </body> 
    21 </html> 
    1         protected void Button1_Click(object sender, EventArgs e) 
    2         { 
    3             Label1.Text = RadTextBox1.Text; 
    4             Label2.Text = RadTextBox2.Text; 
    5         } 

    First of all, you will see that the password box appears to have a value, although clicking on the button will show that it doesn't.

    Drag some text on to the 1st textbox. I dragged the url for this page out of the Location bar of FF on to the textbox on my page. Pressing the button, you would expect to see "http://www.telerik.com/community/forums/new-thread.aspx?forumId=243". What I actually get is "Drag text on to mehttp://www.telerik.com/community/forums/new-thread.aspx?forumId=243 ".

    I'm fairly sure you can't do anything about the first of these 2 issues. I suspect the 2nd is a bug you could fix.

    --
    Stuart




  2. Dimo
    Admin
    Dimo avatar
    8452 posts

    Posted 17 Jun 2009 Link to this post

    Hello Stuart,

    >> First of all, you will see that the password box appears to have a value, although clicking on the button will show that it doesn't.

    The "value" that you are seeing is actually the EmptyMessage. Since it is not a real value, it is not returned as such on the server. I am afraid we don't support EmptyMessage with password RadTextBoxes.


    >> What I actually get is "Drag text on to me....................".

    Indeed, it is not expected for the empty message to be preserved and transformed into a part of the textbox value when you drag text into the textbox. We will fix this. Thank you for the report.


    Kind regards,
    Dimo
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. Stuart Hemming
    Stuart Hemming avatar
    1622 posts
    Member since:
    Jul 2004

    Posted 17 Jun 2009 Link to this post

    > The "value" that you are seeing is actually the EmptyMessage.
    As I suspected.

    > I am afraid we don't support EmptyMessage with password RadTextBoxes.
    Then you should document that.

    > We will fix this
    Cool.

    --
    Stuart
Back to Top