Could you shed a light how the basic pager, e.g. NextPrevAndNumeric, decides what data display left-aligned and what data right-aligned.
In all your descriptions for PagerTextFormat there is a pipe symbol, e.g.
Change page: {4} | Displaying page {0} of {1}, items {2} to {3} of {5}.
which I thought should control it. But it seems there is another logic.
In all your descriptions for PagerTextFormat there is a pipe symbol, e.g.
Change page: {4} | Displaying page {0} of {1}, items {2} to {3} of {5}.
which I thought should control it. But it seems there is another logic.
5 Answers, 1 is accepted
0
Hi Michael,
Please take a look at the following example:
RadGrid Paging
Note how the pager content is wrapper inside two <div>s:
div.PagerLeft_Skin and div.PagerRight_Skin
These two <div>s have float styles in the skin, which determine their positioning. You can override this positioning, according to your preference.
Let us know if you need more information.
Sincerely yours,
Dimo
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Please take a look at the following example:
RadGrid Paging
Note how the pager content is wrapper inside two <div>s:
div.PagerLeft_Skin and div.PagerRight_Skin
These two <div>s have float styles in the skin, which determine their positioning. You can override this positioning, according to your preference.
Let us know if you need more information.
Sincerely yours,
Dimo
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0

miksh
Top achievements
Rank 1
Iron
answered on 01 Aug 2008, 01:09 PM
Thanks, I realized that the pages info is displayed in to <div>s.
My question was how to control what data defined in PagerTextFormat go to the left and right <div>? Playing with different formats I found out that the divider is {4}. Is this correct?
Another question: if the PagerTextFormat = "Change page: {4} | Displaying page {0} of {1}, items {2} to {3} of {5}." the symbol "|" disappears.
If PagerTextFormat = "Displaying page {0} of {1}, items {2} to {3} of {5} | Change page: {4}." it displays "|". Is there any specific purpose of the symbol "|" in PagerTextFormat ?
If there is any logic behind I would appreciate if you add it into the documentation.
My question was how to control what data defined in PagerTextFormat go to the left and right <div>? Playing with different formats I found out that the divider is {4}. Is this correct?
Another question: if the PagerTextFormat = "Change page: {4} | Displaying page {0} of {1}, items {2} to {3} of {5}." the symbol "|" disappears.
If PagerTextFormat = "Displaying page {0} of {1}, items {2} to {3} of {5} | Change page: {4}." it displays "|". Is there any specific purpose of the symbol "|" in PagerTextFormat ?
If there is any logic behind I would appreciate if you add it into the documentation.
0
Hello Michael,
You are on the right track with the {4} - it is the last thing in the pager item, which is left-aligned. Everything coming after {4} is placed in the right <div>.
As for the "|" divider - it's just text, doesn't have any special functions. While I tested with PagerTextFormat, it never disappeared.
Greetings,
Dimo
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
You are on the right track with the {4} - it is the last thing in the pager item, which is left-aligned. Everything coming after {4} is placed in the right <div>.
As for the "|" divider - it's just text, doesn't have any special functions. While I tested with PagerTextFormat, it never disappeared.
Greetings,
Dimo
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0

miksh
Top achievements
Rank 1
Iron
answered on 01 Aug 2008, 03:14 PM
Thanks for the explanation.
I'd like to suggest a few things:
1. Describe it in the documentation for PagerTextFormat.
2. Add a delimiter symbol(s) which will be treated as a divider for left/center/right parts. In some scenarios I really wished to have something in the center <div>.
I'd like to suggest a few things:
1. Describe it in the documentation for PagerTextFormat.
2. Add a delimiter symbol(s) which will be treated as a divider for left/center/right parts. In some scenarios I really wished to have something in the center <div>.
0
Hi miksh,
Thank you for the suggestion - I will forward them to our documentation team to be considered for the next versions of the help. Additionally, if you would like to have more flexible/customizable grid pager, consider defining your own pager template as illustrated in this online demo:
http://www.telerik.com/DEMOS/ASPNET/Prometheus/Grid/Examples/Programming/PagerTemplate/DefaultCS.aspx
Best regards,
Stephen
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Thank you for the suggestion - I will forward them to our documentation team to be considered for the next versions of the help. Additionally, if you would like to have more flexible/customizable grid pager, consider defining your own pager template as illustrated in this online demo:
http://www.telerik.com/DEMOS/ASPNET/Prometheus/Grid/Examples/Programming/PagerTemplate/DefaultCS.aspx
Best regards,
Stephen
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.