change icon of raddcock close command

2 posts, 0 answers
  1. prayag ganoje
    prayag ganoje avatar
    127 posts
    Member since:
    Feb 2010

    Posted 03 May 2011 Link to this post


    I want to change the icon of raddock command. I am using skin sitefinity. To maintain cosistancy i wish to change it and pass it throgh CSS.

    I am creating raddocks dynamically.
    dock.Commands.Add(New DockCloseCommand())
    dock.CommandsAutoPostBack = True

    Here how to set css for the newly added close command ?
  2. Pero
    Pero avatar
    1156 posts

    Posted 04 May 2011 Link to this post

    Hello Prayag,

    You could achieve the scenario in the following way:
    • Add the following CSS code to your page
      <style type="text/css">
        .changeClose .rdClose
          /*change the url of the image */
          background: url('img/audio.png') !important;
    • Set the RadDock.CssClass property to changeClose
      dock.Commands.Add(New DockCloseCommand())
      dock.CommandsAutoPostBack = True
      dock.CssClass = "changeClose"

    All the best,
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Back to Top