TextField disabled bug ?

  1. #1

    TextField disabled bug ?

    Hello,

    I am trying to set the maxlenght property to my text field, but its not working,

                                <ext:TextField ID="rfcTextField" runat="server" FieldLabel="RFC" AnchorHorizontal="92%"
                                    Disabled="true" SelectOnFocus="true" MaxLength="13" />
    code behind on click event:

     protected void deseleccionarReceptorButton_Click(object sender, DirectEventArgs e)
            {
                this.rfcTextField.Disabled = false;
            }
    after click, I can able to write a lot of text of my text field, if this a bug ?


    thanks =)
    Last edited by xtremexploit; Nov 07, 2011 at 5:16 PM.
  2. #2
    Correction: MaxLength property is not working =(



    Quote Originally Posted by xtremexploit View Post
    Hello,

    I am trying to set the maxlenght property to my text field, but its not working,

                                <ext:TextField ID="rfcTextField" runat="server" FieldLabel="RFC" AnchorHorizontal="92%"
                                    Disabled="true" SelectOnFocus="true" MaxLength="13" />
    code behind on click event:

     protected void deseleccionarReceptorButton_Click(object sender, DirectEventArgs e)
            {
                this.rfcTextField.Disabled = false;
            }
    after click, I can able to write a lot of text of my text field, if this a bug ?


    thanks =)
  3. #3
    Hi,

    What Ext.Net sources do you use?

    It should be fixed in 1.2.
  4. #4
    I restarted my web app and now its working fine.. I will tell you what I did..


    1. I edited a web page using a text field without maxlenght
    2. I open my page in the web browser and I tested the control and its working as expexted
    3. I edited the source code and set the maxlenght property to my textfield
    4. I press F5 to refresh the page in the web browser
    5. The maxlenght is not working
    6. I closed the web browser and the web development server
    7. I open the same page and now the maxlentg is working fine

    I think that the ext.net library wasnt regenerating the extjs code, maybe the ext.net is caching something that is causing that the modifications to the aspx control is always ignored becsusa the code is already rendered before! This is only a theory...


    Hope this help you!



    Quote Originally Posted by Daniil View Post
    Hi,

    What Ext.Net sources do you use?

    It should be fixed in 1.2.
    Last edited by xtremexploit; Nov 08, 2011 at 7:32 PM.
  5. #5
    Hello :)

    I am using the 1.2 Comunity version!




    Quote Originally Posted by Daniil View Post
    Hi,

    What Ext.Net sources do you use?

    It should be fixed in 1.2.
  6. #6
    Well, could you post a full, but simplified, .aspx page to reproduce the problem following the steps you provided?
    Last edited by Daniil; Nov 18, 2011 at 10:41 AM.

Similar Threads

  1. [CLOSED] CSS class for disabled TextField
    By vadym.f in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: Jun 07, 2012, 5:48 PM
  2. Click on disabled TextField - catch the event
    By AlexMaslakov in forum 1.x Help
    Replies: 1
    Last Post: Nov 14, 2011, 12:31 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. Can't read value from disabled textfield
    By Ares in forum 1.x Help
    Replies: 4
    Last Post: Jul 01, 2009, 5:33 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