Monday

html.radiobuttonfor onclick for tracking change event

here is example how to use onclick event for tracking changes in radio button group.
 
@Html.LabelFor(m => m.BoolProperty)
@Html.RadioButtonFor(m => m.BoolProperty, true, new { onclick= "onPropertyChanged(true);" })
@StringResources.Submitted
@Html.RadioButtonFor(m => m.BoolProperty, false, new { onclick = "onPropertyChanged(false);" })
@StringResources.Fulfillment

so when radio button control will be changed , onPropertyChanged javascript function will be called passing value of radio button as argument.

No comments:

make ubuntu business casual

to make ubuntu business casual - make it black remove background: gsettings set org.gnome.desktop.background picture-options ...