Skip to content

Instantly share code, notes, and snippets.

@lohithgn
Created April 22, 2013 06:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lohithgn/5432854 to your computer and use it in GitHub Desktop.
Save lohithgn/5432854 to your computer and use it in GitHub Desktop.
client side event handling
<p>
@(Html.Kendo().ColorPicker()
.Name("palette-picker")
.Value("#cc2222")
.Palette(ColorPickerPalette.Basic)
.Events(events => events
.Select("pickerSelect")
.Change("pickerChange")
.Open("pickerOpen")
.Close("pickerClose")
)
)
</p>
<script>
function pickerSelect(e) {
var selectedValue = e.value;
}
function pickerChange(e) {
var selectedValue = e.value;
}
function pickerOpen(e) {
//custom code
}
function pickerClose(e) {
//custom code
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment