Feb 19, 2016, 12:41 PM
CheckBoxGroup Razor Change event
If I have a checkboxgroup defined in my razor page as such
this - returns the checkboxgroup
any suggestions, thanks
Found the answer. please close. thanks
X.CheckboxGroup()
.ID("chkPrograms")
.ColumnsNumber(3)
.FieldLabel("Programs")
.AllowBlank(false)
.Vertical(true)
.PaddingSpec("2 10 6 2")
.Listeners(l => l.Change.Handler = "function(this, newValue, oldValue, eOpts){ alert('1'); }")
.Items(
(from chk in Model.Programs
select new Checkbox
{
ID = chk.ProgramCode,
DataIndex = chk.ProgramCode,
InputValue = chk.ProgramCode,
BoxLabel = chk.ProgramCode
}
).ToList<Checkbox>()
)
I would like to know which checkbox has been clicked so I can test some conditions. this - returns the checkboxgroup
any suggestions, thanks
Found the answer. please close. thanks
Last edited by idrissb; Feb 19, 2016 at 1:16 PM.