Add Custom Color

47 posts, 0 answers
  1. brian
    brian avatar
    11 posts
    Member since:
    Apr 2009

    Posted 15 Oct 2009 Link to this post

    Thank you for the reply.

    This was the temporary fix for that problem.

      function OnClientCommandExecuting(editor, args) {  
                           
             if (typeof(args.value) != "string")  
             {  
                          
     
                var commandName = args.get_commandName();  
     
                if ("InsertTable" == commandName) {  
                    var cArea = editor.get_contentArea();  
                    var tables = cArea.getElementsByTagName("TABLE");  
                    for (var i = 0; i < tables.length; i++) {  
                        curTables[curTables.length] = tables[i];  
                    }  
                }  
                elseif (args.value.substring(0,1) == "#")  
                { //do something else if necessary  
                 }  
             }  similar to this
     
    However, i had an issue with the

    var foreColorElement = editor.getToolByName("ForeColor").get_element();
    getToolByName messing up a radsplitter on init. I went round and round with firebug and other editor methods to access this in order to get and replace the parent element. I could not access any tools named in my xml file or named in the aspx. Too bad the tools arent rendered in uniquely named html elements.

    I wound up in the toolsJSON method with an index of 9 and was right on the virge, but eventually gave up and moved on. 

    Regards,

    Brian

  2. Alan Reeve
    Alan Reeve avatar
    16 posts
    Member since:
    Jan 2004

    Posted 02 Dec 2009 Link to this post

    I'll add my vote to bring this feature back asap (although now that this has been an issue for over a year I gather Telerik doesn't care). It amazes me when I upgrade software and lose very important features like this. We use it every day and now we're forced to do the work in HTML mode.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Rumen
    Admin
    Rumen avatar
    12851 posts

    Posted 03 Dec 2009 Link to this post

    Hi Alan,

    We do not plan for the time being to integrate the RadColorPicker control in the editor because it will slow down its loading. During the years we receive multiple customers request about optimizing the editor loading speed and this was the reason to remove all not frequently used features from the control.

    Nevertheless, we are currently working on a new public issues tracking system where our community will be able to vote and raise the priority of the logged bug and feature request issues. We are targeting a release date for this system around the end of December' 09.

    This means that you will be able to vote soon for the Add HEX and Custom color features and we will consider their implementation.

    Sincerely yours,
    Rumen
    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.
  5. eyal
    eyal avatar
    54 posts
    Member since:
    Sep 2009

    Posted 04 Dec 2009 Link to this post

    Hi Rumen,

    I'll also add my vote for the custom color.
    But as Alan wrote before, it looks like we are 'beating a dead horse', considering your previous posts (from Aug 11 and Sep 25, 2008).
    If I understood correctly, you now ask everyone who wants this feature to vote again (in the coming new system) and then you will reconsider it again?!

    br,
    eyal
  6. Greg
    Greg avatar
    11 posts
    Member since:
    May 2009

    Posted 07 Dec 2009 Link to this post

    Please add my vote for this feature as well.

    I also understand the desire for a quick loading editor. I would GUESS what most people want is just a simple way to add a custom color. Rather than the full blown color picker control with sliders and four different ways of picking a color. Heck, even just a hex code input box in the current color drop down would be better than nothing. But it would probably be best to stick to the web standard of web palette + HSB palette.

    Greg
  7. Koen Klomp
    Koen Klomp avatar
    6 posts
    Member since:
    Aug 2003

    Posted 17 Dec 2009 Link to this post

    Hi,

    We've just upgraded tot the .NET AJAX Editor... 
    Why in gods name did you guys remove the "add custom color" functionality?
    You could better remove your color pallete and leave the add custom color option...
    Just a simple text field for adding a custom color instead of the few colors we're stuck with now!!!
    Removing functionality from the editor is a big mistake. We're upgrading because we want more functionality not less.

    Please Re-add this functionallity!

    Roel Schlijper
    Slampaq Solutions BV


  8. Trevor
    Trevor avatar
    13 posts
    Member since:
    Mar 2009

    Posted 31 Dec 2009 Link to this post

    I am able to add your "add custom color button to the forecolor and backcolor tools on the toolbar however I need to add this button to the other color pickers throughout the radEditor. ie. the table wizard under table properties and cell properties.
    How can I do this?????


    Trevor

    PS I vote you bring the customcolor back in the next release, this makes no sense. (Even an input for a hex value would be better)
  9. Dobromir
    Admin
    Dobromir avatar
    1633 posts

    Posted 04 Jan 2010 Link to this post

    Hi Trevor,

    You can achieve this by modifying the external RadEditor's dialogs to use RadColorPicker instead of the RadEditor's built-in ColorPicker control.
    In the following demo you can see how to customize the editor's built-in dialogs: Customize Built-in Dialogs

    For you convenience I have attached the modified CellProperties.ascx and TableProperties.asxc dialogs that use the RadColorPicker control.
    Note that the RadEditor's built-in ColorPicker has different methods to set and get current color. Please examine the code and check the comments about the changes that were made.

    In addition, AddCustomColor feature is planned to be introduced in the next major release (Q1 2010).

    Greetings,
    Dobromir
    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.
  10. Trevor
    Trevor avatar
    13 posts
    Member since:
    Mar 2009

    Posted 04 Jan 2010 Link to this post

    Thats great,
    I was able to add the 2 samples you gave me to my project and use them, they work great.
    I still have a couple of questions:
    1. How can I get the same custom color picker in the "Style Builder"?
    2. When do you estimate the next release date?

    Thanks again,
    Trevor
  11. Dobromir
    Admin
    Dobromir avatar
    1633 posts

    Posted 04 Jan 2010 Link to this post

    Hi Trevor,

    Straight to your questions:

    1. In order to add the RadColorPicker control to the Style Builder dialog you need to modify the StyleBuilder.ascx external dialog file (see the attached file).
    2. Next major release is scheduled for March 2010.

    Greetings,
    Dobromir
    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.
  12. Trevor
    Trevor avatar
    13 posts
    Member since:
    Mar 2009

    Posted 04 Jan 2010 Link to this post

    Dobromir,
    Excellent,
    I would like the forecolor and backcolor pickers from the default toolbar to look the same, how can i do this?

    Trevor
  13. Dobromir
    Admin
    Dobromir avatar
    1633 posts

    Posted 05 Jan 2010 Link to this post

    Hi Trevor,

    There is a post with an example in this forum thread that explains how to add RadColorPicker control to the forecolor and backcolor Editor pickers. It is posted by Tsvetie. Please find the post and check the example.

    Sincerely yours,
    Dobromir
    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.
  14. John Haag
    John Haag avatar
    1 posts
    Member since:
    Jan 2010

    Posted 29 Jan 2010 Link to this post

    I would like to add my voice of extreme disappointment at this decision and the unwillingness to fix it even after dozens of complaints and pleas.

    How could you EVER think that this is OPTIONAL for anyone making a web page/site in 2010?

    Why didn't you ask people to vote regarding taking it away rather than holding 18 months of "voting" to try to bring it back?

    This is very, very disappointing.
  15. brian
    brian avatar
    11 posts
    Member since:
    Apr 2009

    Posted 29 Jan 2010 Link to this post

    I just read through the new sp2 docs and found this

    Q3 2009 Service Pack 2


    RadEditor

    What’s New:

    • Added: Custom / HEX colors support in editor colorpickers
    • Added: Border style optimization (the editor will compact CSS border styles if possible)
  16. Dobromir
    Admin
    Dobromir avatar
    1633 posts

    Posted 29 Jan 2010 Link to this post

    Hi guys,

    Indeed, the requested Add Custom Color feature was reintroduced in the last service pack of RadControls Q3 2009 SP2 (ver 2009.3.1314). You can test it in the live demos as well.

    Best wishes,
    Dobromir
    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.
  17. Trevor
    Trevor avatar
    17 posts
    Member since:
    Mar 2009

    Posted 17 Mar 2010 Link to this post

    I keep getting an error on the stylebuilder.ascx page:

    Message: Object doesn't support this property or method
    Line: 392

     

     

       var colorPicker = $find("color");
       colorPicker.set_items(this._clientParameters.Colors);
       colorPicker.set_addCustomColorText(localization["AddCustomColor"]);
       colorPicker.set_color("");

       var colorPickerBorderTop = $find("colorPickerBorderTop");
       colorPickerBorderTop.set_items(this._clientParameters.Colors);
       colorPickerBorderTop.set_addCustomColorText(localization["AddCustomColor"]);
       colorPickerBorderTop.set_color("");

       var colorPickerBorderRight = $find("colorPickerBorderRight");
       colorPickerBorderRight.set_items(this._clientParameters.Colors);
       colorPickerBorderRight.set_addCustomColorText(localization["AddCustomColor"]);
       colorPickerBorderRight.set_color("");
       colorPickerBorderRight.set_enabled(false);

     


    any ideas why?

     

     

     

     

     

  18. Rumen
    Admin
    Rumen avatar
    12851 posts

    Posted 18 Mar 2010 Link to this post

    Hello Todd,

    I am unable to reproduce this problem on my end. Is it possible that you are using old Telerik.Web.UI.dll with a new EditorDialogs folder?

    It will be best if you isolate the problem in a sample working project and send it for examination by opening a support ticket.

    For your convenience I have also attached my test project which works fine on my side.

    All the best,
    Rumen
    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017