Nov 23, 2012, 7:21 AM
[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):
I wonder if this is normal behaviour or it's some kind of bug?
Thanks,
ViDom
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]