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

Use grid button CSS class outside of grid

2 Answers 103 Views
SkinManager
This is a migrated thread and some comments may be shown as answers.
Wyatt
Top achievements
Rank 1
Wyatt asked on 23 Apr 2010, 03:17 PM
I want to duplicate the look of a RadGrid "Previous Page" button outside of the grid.  I'm using RadFormDecorator and RadSkinManager for all controls.  The following code does not work.

Dim btPrev As New Button  
btPrev.Attributes.Add("CssClass""rgPagePrev"

2 Answers, 1 is accepted

Sort by
0
Accepted
Dimo
Telerik team
answered on 26 Apr 2010, 09:07 AM
Hi Wyatt,

The rgPagePrev CSS class (as well as all other RadGrid inner elements' CSS classes) works only if the corresponding element is placed inside a container with the RadGrid_SkinName CSS class, for example:

<span class="RadGrid RadGrid_SkinName" style="border:0;background:transparent">
     <asp:Button ID="Button1" runat="server" CssClass="rgPagePrev" Text=" " />
</span>

Note two things:

1. you need to remove the skin's border and background for the wrapper element
2. the Text property of the button must be set to a space. For accessibility reasons, you may want to set the ToolTip property.


Kind regards,
Dimo
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.
0
Wyatt
Top achievements
Rank 1
answered on 26 Apr 2010, 08:46 PM
That works.  Thank you!
Tags
SkinManager
Asked by
Wyatt
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Wyatt
Top achievements
Rank 1
Share this question
or