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

Color Picker CSS

1 Answer 67 Views
ColorPicker
This is a migrated thread and some comments may be shown as answers.
Rafal
Top achievements
Rank 1
Rafal asked on 03 Nov 2010, 04:07 PM
Hi.

I have a Color picker wrapped in a jquerry dialog and when i choose a color i would like the color pop up to expand the dialog (instead of just overflowing) or  be able to reposition it somewhere on the page. Could anybody by any chance provide me with the name of the class tag that i need to modify? i have not been able to find it on my own.

Thanks!
Rafal

1 Answer, 1 is accepted

Sort by
0
Tsvetie
Telerik team
answered on 08 Nov 2010, 08:46 AM
Hello Rafal,
In case I understand your requirement correctly, you do not want to use the popup feature of the color picker, but only have the control invisible, until the user clicks a button. In this case, I would recommend that you use a static color picker (ShowIcon=false) that is hidden by default, e.g. it is wrapped in a DIV with "display:none" style setting, and use a separate button to show/hide the wrapper DIV.

Another approach would be to re-size the dialog, when the palette opens - you can use the popUpShow client-side event in order to implement this:
<telerik:RadColorPicker ID="RadColorPicker1" runat="server" Height="338px" ShowIcon="true"
    OnClientPopUpShow="OnClientPopUpShow">
</telerik:RadColorPicker>
<script type="text/javascript">
    function OnClientPopUpShow(sender,args)
    {
        alert(1);
    }
</script>

Regarding your second question - about positioning the palette somewhere on the page, you can use the TOP and LEFT style settings to do this. You can find additional information about these settings on the W3 site - http://www.w3.org/TR/1998/REC-CSS2-19980512/visuren.html#position-props.

Regards,
Tsvetie
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
ColorPicker
Asked by
Rafal
Top achievements
Rank 1
Answers by
Tsvetie
Telerik team
Share this question
or