Dec 18, 2018, 2:00 PM
Check if all ComboBoxes are selected.
Hello.
I have three ComboBoxes, there is code. I want to check if all comboboxes are selected and then load grid by Ajax. I think, that I should use JavaScript but don't know how. How can I do that?
I have three ComboBoxes, there is code. I want to check if all comboboxes are selected and then load grid by Ajax. I think, that I should use JavaScript but don't know how. How can I do that?
@(x.FieldSet()
.Collapsible(true)
.Collapsed(false)
.Layout(LayoutType.Column)
.Items(
x.ComboBox().FieldLabel("Год:")
.EmptyText("Select Year")
.Items(
new ListItem("2014", "2014"),
new ListItem("2015", "2015"),
new ListItem("2016", "2016")
).ColumnWidth(0.30),
x.ComboBox()
.FieldLabel("Период:")
.EmptyText("Select Period")
.Items(
new ListItem("1 кв.", "1 кв."),
new ListItem("2 кв.", "2 кв."),
new ListItem("3 кв.", "3 кв."),
new ListItem("4 кв.", "4 кв.")
).ColumnWidth(0.30).StyleSpec("margin-left: 50px;"),
x.ComboBox()
.FieldLabel("ОрганизациÑ:")
.EmptyText("Select Organisation")
.DisplayField("Name")
.Store(x.Store()
.Data(Model.BalanceDropDownOutput)
.Model(Html.X().Model()
.IDProperty("Id")
.Fields(
new ModelField("Id", ModelFieldType.String) { Mapping = "ORG" },
new ModelField("Name", ModelFieldType.String) { Mapping = "KBO" }
)
))
.ColumnWidth(0.6).StyleSpec("margin-top: 10px;")
)
)
Last edited by gigola9; Dec 21, 2018 at 12:09 PM.