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

How to edit a predefined Skin?

6 Answers 87 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Bilal
Top achievements
Rank 1
Bilal asked on 16 Nov 2011, 11:55 AM
Hi Telerik Team,

I'm using the "Windows7" skin as my default skin for RadGrid.
However, I want to edit the pager style of this skin. For example I want to switch the items counter from right to left, so the pagination will be on right and the items counter on left.
Meanwhile the default position is: Pagination on Left and Items counter on right.

Please do let me know how can I achieve such scenario.

Thanks,
Bilal

6 Answers, 1 is accepted

Sort by
0
Jayesh Goyani
Top achievements
Rank 2
answered on 16 Nov 2011, 12:01 PM
Hello,

<PagerStyle PagerTextFormat="Displaying page {0} of {1}, items {2} to {3} of {5}" />

Also check below links for more info.

Setting PagerTextFormat
Setting pager template
Custom Pager Template

Thanks,
Jayesh Goyani
0
Shinu
Top achievements
Rank 2
answered on 16 Nov 2011, 02:15 PM
Hello Bilal,

Try the following CSS.
CSS:
<style type="text/css"
.RadGrid_Default .rgPager div
{
    float:right !important;
}
.RadGrid .rgWrap
{
    white-space: normal !important;
}
 div.RadGrid .rgInfoPart
{
    margin-right:800px !important;
}
</style>
-Shinu.
0
Bilal
Top achievements
Rank 1
answered on 16 Nov 2011, 03:43 PM
Shinu,

It didnt' work.

And Jayesh, the PagerTextFormat attribute did not resolve my problem.

All I need is the items counter to be on the left and the pagination (including right/left arrows, page size) to be on the right.

Please help.

Thanks,
Bilal
0
Bilal
Top achievements
Rank 1
answered on 16 Nov 2011, 04:09 PM
Shinu,

I just noticed that your code work - but when using the Mode="NextPrevAndNumeric", the arrows are switched.
I tried override them by using the PrevPageImageUrl, NextPageImageUrl, etc.. but the problem is when using these attributes, the width of each arrow become wider. (See attached)
Also do you have any solution for placing the Page Size right after the last arrow?

Your help is really appreciated,

Thanks,
Bilal
0
Bilal
Top achievements
Rank 1
answered on 16 Nov 2011, 08:15 PM
Now my boss changed his mind- he only want the Items counter to be on the left, so the order is: Items counter, Pagination, Page size.

Please can you help?

Thank you,
Bilal
0
Jayesh Goyani
Top achievements
Rank 2
answered on 17 Nov 2011, 06:51 AM
Hello,

Method 1 :
Custom Pager Template

Method 2 :

Find div by class name and using jquery and set its position and style.

Thanks,
Jayesh Goyani
Tags
Grid
Asked by
Bilal
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
Shinu
Top achievements
Rank 2
Bilal
Top achievements
Rank 1
Share this question
or