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

RadTreeList and PagerStyle-PagerTextFormat

3 Answers 87 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Rachael
Top achievements
Rank 1
Rachael asked on 30 Jun 2011, 09:09 PM
Here is my code for my TreeList:

<telerik:RadTreeList ID="rtlNotes" runat="server" GridLines="None" AutoGenerateColumns="false"
OnNeedDataSource="rtlNotes_NeedDataSource" OnItemDataBound="rtlNotes_ItemDataBound" OnItemCommand="rtlNotes_ItemCommand"
OnUpdateCommand="rtlNotes_UpdateCommand" OnInsertCommand="rtlNotes_InsertCommand" OnDeleteCommand="rtlNotes_DeleteCommand"
ParentDataKeyNames="ParentId" DataKeyNames="Id"
AllowSorting="true"
AllowPaging="true" PageSize="20" OnPageIndexChanged="rtlNotes_PageIndexChanged" OnPageSizeChanged="rtlNotes_PageSizeChanged"
PagerStyle-Position="TopAndBottom" PagerStyle-AlwaysVisible="true" PagerStyle-PagerTextFormat="{4} page {0} of {1}, item {2} to {3} of {5}"
NoRecordsText="There are no notes for this person.">
...
</telerik:RadTreeList>

The TreeList displays just fine except for one thing: it doesn't show the information from the PagerStyle-PagerTextFormat at all.  Does the TreeList not support this? Am I missing something in my code?  I can't find any documentation about this on the site.

Thank you.

3 Answers, 1 is accepted

Sort by
0
Mira
Telerik team
answered on 05 Jul 2011, 03:31 PM
Hello Rachael,

The RadTreeList does not have a PagerTextFormat property.
In order to implement the desired functionality, I recommend that you use a custom pager template.

I hope this helps.

Greetings,
Mira
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Rachael
Top achievements
Rank 1
answered on 05 Jul 2011, 03:50 PM
It seems silly that the property is there if it's unsupported.  Is there a reason this property/functionality can't be supported?  If so, is it possible to remove it to avoid confusion?
0
Mira
Telerik team
answered on 08 Jul 2011, 09:32 AM
Hello Rachael,

The RadTreeList does not have a PagerStyle-PagerTextFormat property. You can see all PagerStyle-XXX properties listed in the InteliSense.
We have decided not to have a PagerStyle-PagerTextFormat property because the rendering of the RadTreeList is very complicated and it would not be possible to achieve the desired results with this property.
You can use a custom pager template for customizations of the pager.

I hope this helps.

All the best,
Mira
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
TreeList
Asked by
Rachael
Top achievements
Rank 1
Answers by
Mira
Telerik team
Rachael
Top achievements
Rank 1
Share this question
or