<div class="k-block"> <div class="k-header k-shadow"><span class="k-icon k-i-pencil"></span>Employee Colour</div> <div class="editor-label"> @Html.LabelFor(x => x.BackgroundColour) </div> <div class="editor-field"> @(Html.Kendo().ColorPicker().Name("BackgroundColour").Palette(ColorPickerPalette.Basic).Value(Model.BackgroundColour)) @Html.TextBoxFor(x => x.BackgroundColourInput, new { @class = "editor-colour"}) </div> <br /> <div class="editor-label"> @Html.LabelFor(x => x.TextColour) </div> <div class="editor-field"> @(Html.Kendo().ColorPicker().Name("TextColour").Palette(ColorPickerPalette.Basic).Value(Model.TextColour)) @Html.TextBoxFor(x => x.TextColourInput, new { @class = "editor-colour"}) </div> <br/></div>rgb(0,255,255)
but when the form loads, the initial colour is always black, can someone tell me what I'm doing wrong please, as looking at the documentation it seems this should work. I should also point out that passing a string as below:
#00FFFF
does work.
Thanks.