Kendo colour picker not accepting RGB(x,x,x) string.

2 posts, 0 answers
  1. Sean
    Sean avatar
    1 posts
    Member since:
    Jul 2013

    Posted 15 Aug 2013 Link to this post

    <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 class="editor-field">
                @Html.TextBoxFor(x => x.BackgroundColourInput, new { @class = "editor-colour"})
            <br />
            <div class="editor-label">
                @Html.LabelFor(x => x.TextColour)
        <div class="editor-field">
             @Html.TextBoxFor(x => x.TextColourInput, new { @class = "editor-colour"})
    I'm using the code above to load a colour picker, the Model.BackgroundColour and Model.TextColour are strings as below:


    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:


    does work.

  2. Dimiter Madjarov
    Dimiter Madjarov avatar
    2310 posts

    Posted 16 Aug 2013 Link to this post

    Hi Sean,

    I managed to reproduce the issue on my side too and I have escalated it to the development team for fixing. As a small sign of gratitude I also updated your Telerik points.


    Dimiter Madjarov
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top