PDA

View Full Version : [CLOSED] Selected value of ComboBox is null or empty - Ext.NET.WebForms.Pro.2.2.0



ontiv
Nov 12, 2013, 1:35 PM

Baidaly
Nov 12, 2013, 4:40 PM
Hello!

Could you provide a full sample to reproduce? Here you can get some good practices: http://forums.ext.net/showthread.php?3440

ontiv
Nov 13, 2013, 9:59 AM
Hi Baidaly,

i changed my example.

Daniil
Nov 13, 2013, 12:59 PM
Hi,

Running your example I see nothing. Well, because of Hidden="true" setting. So, I removed it.

Also we do not have "l_reporter". So, I replaced it with:

protected void Page_Load(object sender, EventArgs e)
{
if (!X.IsAjaxRequest)
{
st_cb_reporter.DataSource = new object[]
{
new
{
Name = "Name 1",
Value = "Value 1"
}
};
st_cb_reporter.DataBind();
}
}

Also I add an alert call.

var value = cb_who_report.getValue();

alert(value);

Finally, I select the ComboBox's item and clicked the Button. I see "Value 1" in an alert box. It is expected. I tested with the v2.2 release and with the trunk. Same results with both.

In the next post, please provide a standalone runnable ASPX page which we can copy, paste and run without any change. Also please describe exact steps:

1. Do...
2. Do...
3. etc.

Thank you.