color picker not working in radajaxpanel

5 posts, 0 answers
  1. sad asd
    sad asd avatar
    7 posts
    Member since:
    Aug 2009

    Posted 20 Aug 2009 Link to this post

    i have color picker
    it shows pallet at first time
    after that if i click any button on the page
    it is not working
  2. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 20 Aug 2009 Link to this post

    Hello sad asd,

    The provided information is not enough to observe the problem. You say that the palette shows and thus I assume that you have ShowIcon="true". However, this is the only information I could extract from your explanations and it is also based on assumption. I prepared a test demo which consists of a RadColorPicker, asp update panel and a button and tested the both cases - when the button is inside and outside the update panel but in both cases everything worked as expected and the pallete was shown. The sample code is the following one:

     <form id="form1" runat="server">  
            <asp:ScriptManager ID="ScriptManager" runat="server">  
            </asp:ScriptManager> 
            <asp:UpdatePanel ID="up1" runat="server">  
                <ContentTemplate> 
                    <telerik:RadColorPicker ID="picker" runat="server" ShowIcon="true">  
                    </telerik:RadColorPicker> 
                    <asp:Button ID="btn" runat="server" Text="Button1" /> 
                </ContentTemplate> 
            </asp:UpdatePanel> 
        </form> 

    and as I said, I tested with the button inside and outside the panel.

    This being said, what I assume that might be happening on your side is that you get a javascript error - this could cause the problem you describe. Please, carefully examine whether you get an error and if  so - try fixing it and this will fix the issue.

    In case you need further assistance, please share some code which can be directly pasted on a page and run without any modifications and which reproduces the problem and I will do my best to help.




    Best wishes,
    Svetlina
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. sad asd
    sad asd avatar
    7 posts
    Member since:
    Aug 2009

    Posted 20 Aug 2009 Link to this post

    i am getting javascript error
    original width is not null or object
  5. sad asd
    sad asd avatar
    7 posts
    Member since:
    Aug 2009

    Posted 20 Aug 2009 Link to this post

    when i click on button i am getting 
    sys.invalidoprationexception Two components with same id 'ctl00_contentPlaceHolder_twColorDispaly' can't be added to the application
     this java script error
    after i click on color picker i am getting above javascript error
  6. Tsvetie
    Admin
    Tsvetie avatar
    1517 posts

    Posted 25 Aug 2009 Link to this post

    Hello sad asd,
    I am not quite sure why you are getting this error as I suppose it is a result of your setup. In case you open a new support ticket and send me a working project, demonstrating this error, I will do my best to help you fix it.

    Greetings,
    Tsvetie
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017