RadEditor: ClassName dropdown and backgroud color button

5 posts, 0 answers
  1. ghini
    ghini avatar
    25 posts
    Member since:
    Sep 2012

    Posted 21 Jan 2015 Link to this post

    Hello everyone,
    I'm configuring the RadEditor and I can't do these two things:
    1) Node Inspector: customize the list of CSS classes visible in the dropdown "CLASSNAME" or hide the dropdown "CLASSNAME"
    2) Toolbar: create a custom button to change the background color of the text

    Thanks
  2. ghini
    ghini avatar
    25 posts
    Member since:
    Sep 2012

    Posted 21 Jan 2015 in reply to ghini Link to this post

    My Telerik version is 2014.3.1024.45
    Thanks
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Ianko
    Admin
    Ianko avatar
    1535 posts

    Posted 23 Jan 2015 Link to this post

    Hello Ghini,

    The Css Class dropdown can be further configured to show only certain classes via the CssClass collection of the RadEditor. 

    As for creating custom buttons, this demo (Custom Tools) demonstrates exactly how to achieve that.

    Regards,
    Ianko
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  5. ghini
    ghini avatar
    25 posts
    Member since:
    Sep 2012

    Posted 24 Jan 2015 in reply to Ianko Link to this post

    Hello Ianko,
    thanks for your answer ...

    1) Your suggestion works well but only if ApplyClass is visible in the Toolbar. If I hide the combobox of the Toolbar, the combo in the Node Inspector displays all classes of the page. Is that correct? May be ok anyway.

    2) To allow the choice of the background color of the page, I would like to create a button with the ColorPicker. I would like to create a button similar to the Font Color. Is it possible?

    Thank you very much
  6. Ianko
    Admin
    Ianko avatar
    1535 posts

    Posted 28 Jan 2015 Link to this post

    Hello Ghini,

    All dropdowns related to class names are the same tool and are populated with the same options. So, configuring one tool with the appropriate class names, affects all class-dedicated tools.  You can see this screencast.

    In the Custom Dropdowns demo is illustrated how you can implement your own dropdown to achieve the required custom tool.

    Regards,
    Ianko
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017