Using Button Icons external to editor

3 posts, 1 answers
  1. Nathan J Pledger
    Nathan J Pledger avatar
    95 posts
    Member since:
    Apr 2006

    Posted 25 May 2010 Link to this post

    I need to allow administrative users to configure what buttons on the toolbar are available to end users. Sort of like the "Customize Commands" in Office 2003/VS.

    To be able to offer a richer experience, I would like to be able to represent buttons using the original icons used on the toolbars. Is it possible, given the tool "key" as used in the Tools XML file, to obtain the icon graphic URL?


  2. Answer
    Rumen
    Admin
    Rumen avatar
    12846 posts

    Posted 25 May 2010 Link to this post

    Hi Nathan,

    To optimize the RadEditor's loading, the toolbar loads a single image sprite (but not different multiple icons for every tool as the classic editor), which contains the appearance of all tools: ToolBarSprites.gif - contains the images for the vertical toolbars and other horizontal elements.
    We load the different icons by positioning the sprite image with css top and left properties. You can find information about this in the following help article RadEditor for ASP.NET AJAX CSS: Classes and Their Use Abstract as well as see the attached image.
    You can check the position of each of the icons in the sprite in the external css files of RadEditor and implement your scenario using the sprite.

    Another approach is to download manually the icons from this help article: Introduction to Toolbars.

    Best regards,
    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Nathan J Pledger
    Nathan J Pledger avatar
    95 posts
    Member since:
    Apr 2006

    Posted 25 May 2010 Link to this post

    Thanks Rumen.

    No quite as automated as I'd like, so will need some legwork it seems. Not a problem.
Back to Top