This is a migrated thread and some comments may be shown as answers.

change icon of raddcock close command

1 Answer 35 Views
Dock
This is a migrated thread and some comments may be shown as answers.
prayag ganoje
Top achievements
Rank 1
prayag ganoje asked on 03 May 2011, 11:13 PM
Hello,

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 ?

1 Answer, 1 is accepted

Sort by
0
Pero
Telerik team
answered on 04 May 2011, 03:39 PM
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;
      }
    </style>
  • Set the RadDock.CssClass property to changeClose
    dock.Commands.Add(New DockCloseCommand())
    dock.CommandsAutoPostBack = True
    dock.CssClass = "changeClose"

All the best,
Pero
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.

Tags
Dock
Asked by
prayag ganoje
Top achievements
Rank 1
Answers by
Pero
Telerik team
Share this question
or