[CLOSED] Bug getting value of disabled control?

  1. #1

    [CLOSED] Bug getting value of disabled control?

    Hi,

    I've found out some inconcistent behaviour.

    When You will make servercontrol.cs or even usercontrol.ascx

    like this(I will show servercontrol example):

    public class ServerControl : Ext.Net.Panel{
          private Ext.Net.TextField txtField;
    
          public object Value{
               get{return txtField.Value;}
               set{txtField.Value = value;}
          }
    
          protected override void OnInit(EventArgs e)
          {
                  base.OnInit(e);
                  txtField = new Ext.Net.TextField();
                  
                  this.Items.Add(txtField);
          }
          
          protected override void OnLoad(EventArgs e)
          {
                  base.OnLoad(e);
                  txtField.Disabled = true;//with this when you load value with directEvent for example directClick of button value will be always null
                  txtField.ReadOnly = true;//with that everything is ok value is persisted
          }
    }
    Hope I've make it clear enough.
    I wonder if this is normal behaviour or it's some kind of bug?

    Thanks,
    ViDom
    Last edited by Daniil; Nov 28, 2012 at 2:09 PM. Reason: [CLOSED]
  2. #2
    Please post a full (but simplified) .aspx sample demonstrating the whole scenario.
    Geoffrey McGill
    Founder
  3. #3
    Quote Originally Posted by geoffrey.mcgill View Post
    Please post a full (but simplified) .aspx sample demonstrating the whole scenario.
    in simplyfied sample everything started to work exactly how it supposed to.

    I need to refactor my code to check what is the diffrent in simple sample and my real scenario.

    I will let you know and provide a sample if I found out about it:)

    Thanks for fast answer.

    I looking forward for http://ext.net/x/book/

    do you guys know when it will releas exactly?
  4. #4
    Your code sample is only the class definition. It doesn't actually do anything. Can you demonstrate the whole scenario?
    Geoffrey McGill
    Founder
  5. #5
    Quote Originally Posted by ViDom View Post
    I looking forward for http://ext.net/x/book/

    do you guys know when it will releas exactly?
    It has been published today. Here is a blog post of the book's author.
    http://www.onenaught.com/posts/451/b...on-development
  6. #6
    Quote Originally Posted by Daniil View Post
    It has been published today. Here is a blog post of the book's author.
    http://www.onenaught.com/posts/451/b...on-development
    Thanks Daniil:) That's great news :)
    Do you have promotial code for you premium members? :)
  7. #7
    Quote Originally Posted by ViDom View Post
    Do you have promotial code for you premium members? :)
    Here is a related post.
    http://forums.ext.net/showthread.php...ll=1#post96442

Similar Threads

  1. TextField disabled bug ?
    By xtremexploit in forum 1.x Help
    Replies: 5
    Last Post: Nov 14, 2011, 4:41 PM
  2. Check if control is enabled or disabled
    By AlexMaslakov in forum 1.x Help
    Replies: 1
    Last Post: Oct 12, 2011, 11:19 AM
  3. Replies: 1
    Last Post: Mar 09, 2010, 2:55 AM
  4. Disabled tabs
    By dbassett74 in forum 1.x Help
    Replies: 1
    Last Post: Jun 02, 2009, 1:22 PM
  5. Get value of disabled control
    By Kaido in forum Bugs
    Replies: 8
    Last Post: Mar 27, 2009, 3:53 AM

Tags for this Thread

Posting Permissions