Jul 15, 2013, 9:20 AM
[CLOSED] Combobox in CodeBehind
Hi,
I have a problem with Combobox in CodeBehind.
When I have two properties InputWidth and PreserveIndicatorIcon, I can not click to dropdownlist to display the list of items.
Here is mys test: (I use Ext.net 2.x /truck revision 5252)
Controller:
Thank you,
I have a problem with Combobox in CodeBehind.
When I have two properties InputWidth and PreserveIndicatorIcon, I can not click to dropdownlist to display the list of items.
Here is mys test: (I use Ext.net 2.x /truck revision 5252)
Controller:
public class TestController : Controller
{
public ActionResult Index()
{
var combo_box = new ComboBox
{
InputWidth = 200,
FieldLabel = "Test",
ReadOnly = false,
IndicatorIcon = Icon.Accept,
AllowBlank = false,
PreserveIndicatorIcon = true,
};
combo_box.Items.Add(new ListItem("test", "test"));
combo_box.Items.Add(new ListItem("test2", "test2"));
return View(combo_box);
}
}
View:@model dynamic
@{ Layout = null;}
@Html.X().ResourceManager()
@(Html.X().FieldSet().Title("Test").Width(600).Height(700)
.Items(Model))
Do you have any idea for this problem?Thank you,
Last edited by Daniil; Jul 15, 2013 at 4:12 PM.
Reason: [CLOSED]