This is a migrated thread and some comments may be shown as answers.

Preview not available from MVC wrappers?

3 Answers 45 Views
ColorPicker
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 24 Nov 2013, 03:48 PM
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

3 Answers, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 25 Nov 2013, 04:30 PM
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!
0
David
Top achievements
Rank 1
answered on 27 Nov 2013, 01:55 AM
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
0
Dimiter Madjarov
Telerik team
answered on 27 Nov 2013, 12:31 PM
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!
Tags
ColorPicker
Asked by
David
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
David
Top achievements
Rank 1
Share this question
or