Clear a single tool

3 posts, 0 answers
  1. Rod
    Rod avatar
    2 posts
    Member since:
    Sep 2012

    Posted 18 Mar 2013 Link to this post

    .Clear() seems to clear all tools. Anyway to clear a single tool?
  2. Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2159 posts

    Posted 19 Mar 2013 Link to this post

    Hi Rod,

    A single tool cannot be hidden through the Editor configuration. You could either list the tools to be displayed:
    E.g.

    .Tools(t => t.Clear()
             .Bold()
             .Italic()
             .Underline()
             .BackColor()
             .FontColor())
    OR
    use CSS styles to hide the unnecessary tool via it's unique class.
    E.g.
    <style>
      .k-foreColor
      {
          display: none;
      }
    </style>


     

    Regards,
    Dimiter Madjarov
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Rod
    Rod avatar
    2 posts
    Member since:
    Sep 2012

    Posted 19 Mar 2013 Link to this post

    Thanks Dimiter. I hadn't thought of the style trick.
Back to Top