pageindicator

DEEP25 Aug 2011 12:24 PM

how can i display PAGE 01 OF 12 or PAGE 02 OF 12  ..... instead of PAGE 1 OF 12 or PAGE 2 OF 12 in pageindicator in connect tv.

current :

PAGE 1 OF 13
PAGE 2 OF 13
PAGE 3 OF 13
.
.
.

but I wanna :

PAGE 01 OF 13
PAGE 02 OF 13
PAGE 03 OF 13
.
.
.

    I apply "decimal-leading-zero" style css but it doesn't help.

    Please reply soon

    And thanks in advance.

_buddy31 Aug 2011 12:46 PM
After updating your grid, you can directly affect the text in thePageIndicator with something like:<br>this.controls.resultsPager.children[0].setText(&#39;Page 01 of 07&#39;);<br><br>The index of yourControl.children where your text field lies may vary but it should be accessible in this way.&nbsp; If you&#39;re looking for a more permanent solution, you could try a custom class that extends the KONtx.control.PageIndicator class and has leading zeroes coded into the _buildText function<br><br><br><br><div class="quote"><div class="quotetop">QUOTE<cite>(DEEP @ 25 Aug 2011 12:24 PM)</cite></div><blockquote class="quotemain"><br>how can i display PAGE <span style="color:#ff0000;">01</span> OF 12 or PAGE <span style="color:#ff0000;">02</span> OF 12&nbsp; ..... instead of PAGE <span style="color:#ff0000;">1</span> OF 12 or PAGE <span style="color:#ff0000;">2</span> OF 12 in pageindicator in connect tv.<br><br>current :<br><br>PAGE 1 OF 13<br>PAGE 2 OF 13<br>PAGE 3 OF 13<br>.<br>.<br>.<br><br>but I wanna :<br><br>PAGE 01 OF 13<br>PAGE 02 OF 13<br>PAGE 03 OF 13<br>.<br>.<br>.<br><br>&nbsp;&nbsp;&nbsp; I apply <code><font color="#000000">&quot;decimal-leading-zero&quot; style css but it doesn&#39;t help</font></code>.<br><br>&nbsp;&nbsp;&nbsp; Please reply soon<br><br>&nbsp;&nbsp;&nbsp; And thanks in advance.<br><br></blockquote></div>