Preview not available from MVC wrappers?

4 posts, 0 answers
  1. David
    David avatar
    27 posts
    Member since:
    Apr 2013

    Posted 24 Nov 2013 Link to this post

    I am using the KendoUI MVC wrappers, I believe Q2 2013. In the documentation I see that the ColorPicker has a preview flag that can disable the preview pane. This does not appear to be available in the MVC wrapper? Am I missing something?

    Thanks
    Dave Goughnour
  2. Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2156 posts

    Posted 25 Nov 2013 Link to this post

    Hi David,


    Thank you for bringing this issue to our attention. It is indeed a miss in the MVC Wrappers and I have escalated it to the developers team.

    As a small sign of gratitude I updated your Telerik points.


    Regards,
    Dimiter Madjarov
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Kendo UI is VS 2017 Ready
  4. David
    David avatar
    27 posts
    Member since:
    Apr 2013

    Posted 26 Nov 2013 Link to this post

    So this is not critical or anything, but I found a way around this which was to set .k-selected-color-display height to 0px in my css. Is this an acceptable approach. Is there a better way to accomplish this?

    Along the same lines I wanted the visualization of the colorpicker on my form to be wider than the default so it would line up with my other inputs. I found I could do this by setting the .k-colorpicker width to 145px for instance in css. This made the color picker input the right width but the colored area inside it is still 2em. I can fix this in in my browser by forcing the width of the .k-selected-color class to 100% but I can not manage to get this to work from my css sheets. No matter where I put this it gets overridden by the setting to 2em in kendo.common.min.css. Any thoughts?

    Thanks again
    Dave
  5. Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2156 posts

    Posted 27 Nov 2013 Link to this post

    Hi David,


    Yes, this approach is fine. You could also set the display property of the k-selected-color-display to none. Regarding the second question, you are correct too. I would suggest you to add important to the styles.

    Here is JS Bin which demonstrates both of the approaches.

    Regards,
    Dimiter Madjarov
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top
Kendo UI is VS 2017 Ready