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

Colorpicker in update panel on firefox

7 Answers 108 Views
ColorPicker
This is a migrated thread and some comments may be shown as answers.
Robert Verderber
Top achievements
Rank 2
Robert Verderber asked on 04 Dec 2009, 11:09 PM
Is anyone using the colorpicker control in an update panel and having issue with how it renders? I have it in a RadAjaxPanel so that I can hide and show it whan a specific radio button is selected. If the page loads with it in the hidden state and then it is set to visible in an ajax postback it render really large in firefox. After it hides and shows again on the postback it looks correct. I had seen this a couple of times on IE but it hasn't happened on that browser since I updated the program to the 2009 Q3 release. It is consistantly doing it on Firefox.

Image attached

7 Answers, 1 is accepted

Sort by
0
Tsvetie
Telerik team
answered on 07 Dec 2009, 09:48 AM
Hi Robert Verderber,
I tried to reproduce the problem you describe, but to no avail - I have attached my test page for your reference. I used version 2009.3 1103 of the Telerik.Web.UI assembly for my test and Firefox 3.5.5. Could you please test this page on your side to see if you can reproduce the problem with it? In case you cannot, please open a new support ticket and send us a test page that demonstrates the problem from your screenshot.

Greetings,
Tsvetie
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Robert Verderber
Top achievements
Rank 2
answered on 07 Dec 2009, 04:40 PM
Could it have something to do with me having a custom palette with only 6 colors. I was able to reproduce the issue with a minimal project. I will open a ticket, I can't upload it here. 
0
Jacob
Top achievements
Rank 1
answered on 19 Feb 2010, 12:15 AM
I experience exactly the same issue.
My web page : hidden panel with colorpicker and rad ajax manager proxy , after hitting a button that shows the panel , the colorpicker renders insanely huge , only for the first time , it looks OK after second postback.
0
Robert Verderber
Top achievements
Rank 2
answered on 19 Feb 2010, 03:24 AM
Jacob,

It is an issue in the control. Telerik did give me a work around to ensure that the css for the color picker was loaded properly. I added the following to the top of my page and it solved my issues, Hope it helps.

    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">

        <link href='<%= Page.ClientScript.GetWebResourceUrl(GetType(RadColorPicker), "Telerik.Web.UI.Skins.ColorPicker.css") %>'

            rel="stylesheet" type="text/css" />

        <link href='<%= Page.ClientScript.GetWebResourceUrl(GetType(RadColorPicker), "Telerik.Web.UI.Skins.Default.ColorPicker.Default.css") %>'

            rel="stylesheet" type="text/css" />

    </telerik:RadCodeBlock>


~rv
0
Jacob
Top achievements
Rank 1
answered on 19 Feb 2010, 09:55 AM
Thanks Robert,

I modified your code : GetType(RadColorPicker) -> RadColorPicker1.GetType() and it works, although it still got some difficulties with the width on first render but this bug is more acceptable then the previous one.
0
Robert Verderber
Top achievements
Rank 2
answered on 26 Jul 2010, 04:35 PM
I am creating a new project and I'm having the same issue. This time I'm using the 2010 Q1 release and the fix i was given doesn't work so good in Firefox and this release and seems to actually mess up IE occasionally. Is there a better solution or was this addressed in 2010 Q2?
 
    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
        <link href='<%= Page.ClientScript.GetWebResourceUrl(GetType(RadColorPicker), "Telerik.Web.UI.Skins.ColorPicker.css") %>'
            rel="stylesheet" type="text/css" />
        <link href='<%= Page.ClientScript.GetWebResourceUrl(GetType(RadColorPicker), "Telerik.Web.UI.Skins.Default.ColorPicker.Default.css") %>'
            rel="stylesheet" type="text/css" />
    </telerik:RadCodeBlock>
0
Tsvetie
Telerik team
answered on 27 Jul 2010, 03:35 PM
Hi Robert Verderber,
I tested the page you sent me last time with the 2010 Q1 release and the color picker showed as expected both in IE and FF. I tested with IE7, IE8 and FF 3.6.6 - I have attached my test page for your reference. Could you please send me a test page that demonstrates your current problem?

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
Robert Verderber
Top achievements
Rank 2
Answers by
Tsvetie
Telerik team
Robert Verderber
Top achievements
Rank 2
Jacob
Top achievements
Rank 1
Share this question
or