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

Customing apparence (Pager - Last Column)

1 Answer 28 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Haderach
Top achievements
Rank 1
Haderach asked on 10 Sep 2008, 10:44 AM
Hello,

I am trying to customize our RadGrid apparence creating a new skin from the default one.

Doing this, I have two problems :

- I did not find out how to apply a different apparence to the number of the current page in the Pager in NextPrevAndNumeric mode. Is the a way to do this ?

- I did not find out how to apply a different style on the last column in the header. Can we use a GridHeader_Default:last-child as a GridHeader_Default:first-child ?

Thanks for your help,
Read you soon,

1 Answer, 1 is accepted

Sort by
0
Accepted
Dimo
Telerik team
answered on 10 Sep 2008, 11:55 AM
Hello Haderach,

1) In order to have different color for current page and other pages, you can use:

.GridPager_Skin  span
{
    color: red; /* current page */
}

.GridPager_Skin  а
{
    color: blue; /* all other pages */
}


2) last-child is still not supported by all browsers, so I don't recommend using it. Instead, you'd better add a CSS class to the last header cell, by setting HeaderStyle-CssClass to the last column. If your columns are autogenerated, you should do this at runtime in the ItemCreated event handler - check for header item being created, find the last cell and set a CSS class.


All the best,
Dimo
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Haderach
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or