Dec 13, 2011, 2:55 PM
Merge mode dynamic control creation
In this scenario https://examples1.ext.net/#/Panel/Ba...oad_MergeMode/ when you create a dynamically Ext.Combobox there is no way to get selectedItem value/text from it. It seems it has some issue on the control state
Example bellow is from child.aspx.Calling this page from parent.aspx in merge mode selectedItem.value is alaways null.Bellow example works fine if it is called by itself
and how can i do line numbering??
Example bellow is from child.aspx.Calling this page from parent.aspx in merge mode selectedItem.value is alaways null.Bellow example works fine if it is called by itself
protected void Page_Load(object sender, EventArgs e){
Ext.Net.ComboBox cbo1 = new Ext.Net.ComboBox();
cbo1.FieldLabel = "Cities";
cbo1.Width = new Unit("200px");
cbo1.Items.Add(new Ext.Net.ListItem("Nicosia", "Nicosia"));
cbo1.Items.Add(new Ext.Net.ListItem("Athens", "Athens"));
cbo1.ID = "cbo1";
cbo1.SelectedIndex = 0;
this.Panel2.Items.Add(cbo1);
}
protected void UpdateTimeStamp(object sender, DirectEventArgs e)
{
Ext.Net.ComboBox cbo1 = (Ext.Net.ComboBox)this.Panel2.FindControl("cbo1");
X.Msg.Notify("The selected City: ", cbo1.SelectedItem.Text).Show();
}
any Ideas ?? and how can i do line numbering??
Last edited by zeus; Dec 13, 2011 at 5:47 PM.