Created
April 22, 2013 06:38
-
-
Save lohithgn/5432854 to your computer and use it in GitHub Desktop.
client side event handling
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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