RadTreeList and PagerStyle-PagerTextFormat

4 posts, 0 answers
  1. Rachael
    Rachael avatar
    27 posts
    Member since:
    Jul 2010

    Posted 30 Jun 2011 Link to this post

    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.
  2. Mira
    Admin
    Mira avatar
    1124 posts

    Posted 05 Jul 2011 Link to this post

    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!

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Rachael
    Rachael avatar
    27 posts
    Member since:
    Jul 2010

    Posted 05 Jul 2011 Link to this post

    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?
  5. Mira
    Admin
    Mira avatar
    1124 posts

    Posted 08 Jul 2011 Link to this post

    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!

Back to Top