Can't read value from disabled textfield

  1. #1

    Can't read value from disabled textfield

    Hi!

    I have a disabled textfield that I set its value via javascript with the setRawValue() method. When I do postback I try to read its value server side with textfield.Text or textField.Value and they are allways empty. If I enable the textfield it works fine.

    
    JS:
    
          txtBeginTime.setDisabled(true);
    
          var dt = new Date();
          txtBeginTime.setRawValue(dt.format('hi'));    
    
    ASPX:
    
    <ext:TextField ID="txtBeginTime" Width="150" runat="server" AllowBlank="false" MaxLength="4" AutoPostBack="true"
                                                    MaskRe="<%$ Resources:RegularExpressions, RegexTimeMask %>" Regex="<%$ Resources:RegularExpressions, RegexTime %>"
                                                    RegexText="<%$ Resources:RegularExpressions, RegexTimeErrorText %>">
                                                </ext:TextField>      
    
    CS:
    [...]
    
    Time time = Time.Parse(txtBeginTime.Text.Trim()); //Text is allways empty
    
    [...]
    Regards.
  2. #2

    RE: Can't read value from disabled textfield

    *Hi,

    It is fixed in 0.8 version
  3. #3

    RE: Can't read value from disabled textfield

    Thanks :)

  4. #4

    RE: Can't read value from disabled textfield

    *How to upgrade to 0.8 version ?????
  5. #5

    RE: Can't read value from disabled textfield


    Hi, I have the same problem, but with a CHECKBOX component.
    The difference is that the disabled Checkbox component alway bring a Default False state.

    Regards.

Similar Threads

  1. [CLOSED] TextField with InputTextMask - Mark Read-Only??
    By ndotis in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Dec 20, 2011, 5:11 PM
  2. TextField disabled bug ?
    By xtremexploit in forum 1.x Help
    Replies: 5
    Last Post: Nov 14, 2011, 4:41 PM
  3. [CLOSED] disabled textfield
    By idrissb in forum 1.x Legacy Premium Help
    Replies: 10
    Last Post: Nov 23, 2009, 8:17 PM
  4. [CLOSED] Can't read value from disabled checkbox
    By Pablo in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jul 02, 2009, 2:05 PM
  5. [CLOSED] Getting value from disabled textfield?
    By Jurke in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Dec 19, 2008, 10:19 AM

Posting Permissions