ConversationView data virtualization

13 posts, 0 answers
  1. Doug
    Doug avatar
    49 posts
    Member since:
    May 2012

    Posted 06 Aug 2012 Link to this post

    Does the conversation page support data virtualization? Because i cannot find the DataRequested event nor the DataVirtualizataionMode? 
  2. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 06 Aug 2012 Link to this post

    Hello Doug,

    Thanks for writing.
    RadConversationView uses RadJumpList internally so yes, it can support data virtualization. The thing is that by design it just does not expose the APIs for data virtualization.  You can easily extend RadConversationView by subclassing it. The you will have access to the jump list by getting a reference to it in the OnApplyTemplate() virtual method. You just have to call this.GetTemplatePart<RadJumpList>("PART_ListBox"); after the control template has been set.

    Please write again if you have other questions.

    Kind regards,
    Victor
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
  4. Doug
    Doug avatar
    49 posts
    Member since:
    May 2012

    Posted 07 Aug 2012 Link to this post

    Hi Victor

    That helped, thank you!

    Best Regards
  5. Doug
    Doug avatar
    49 posts
    Member since:
    May 2012

    Posted 09 Aug 2012 Link to this post

    Hi

    Okay I have some additional problems with this...
    -The conversation is going from bottom up (bottom the newest, top the latest) but the DataRequested is firing when we are on the bottom of the page, tho it should fire when we are scrolling to the top.

    -Is there a way to disable jumping to the end of the list when we add an item to the list?

    I'm awaiting your reply

    Best Regards Doug
  6. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 09 Aug 2012 Link to this post

    Hi Doug,

    Thanks for writing.
    Yes, if you download the latest internal build you will find a property called KeepLastMessageVisible.
    Please write again if you need further assistance.

    Greetings,
    Victor
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  7. Doug
    Doug avatar
    49 posts
    Member since:
    May 2012

    Posted 09 Aug 2012 Link to this post

    Hi

    What about my first question?
  8. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 13 Aug 2012 Link to this post

    Hello Doug,

    Currently RadDataBoundListBox, and therefore RadJumpList, does not support manual data virtualization in the opposite direction. We will definitely implement this in a future release since it is a valid use case.
    Write again if you have other questions.

    Greetings,
    Victor
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  9. Danny
    Danny avatar
    11 posts
    Member since:
    Sep 2013

    Posted 27 Jun 2015 Link to this post

    Hi,

    Could you please provide an example of how to achieve Data Virtualization with the RadConversationView please? I am familiar with how to implement Data Virtualization with a RadDataBoundListBox but have never used OnApplyTemplate so I am a little unsure of how to hook this up to my existing RadConversationView

    Thanks

  10. Tsvyatko
    Admin
    Tsvyatko avatar
    833 posts

    Posted 29 Jun 2015 Link to this post

    Hi Doug,

    I have prepared sample demonstrating how you can get RadJumplist and have added simple implementation of DataVirtualizaton. Please have a look and modify it to fits your needs.

    Regards,
    Tsvyatko
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  11. Danny
    Danny avatar
    11 posts
    Member since:
    Sep 2013

    Posted 01 Jul 2015 in reply to Tsvyatko Link to this post

    Hi Tsvyatko,

    Thanks for the example, it is really useful. One other question, if I wanted to do the same as your project but use OnDemandManual, how would I set the button up? Ideally I would like older messages towards the top and a button at the top to load more messages. Normally I would do the following for the button:

    <telerikPrimitives:RadDataBoundListBox.DataVirtualizationItemTemplate>
                        <DataTemplate>
                            <HyperlinkButton x:Name="hlMore" Content="more" HorizontalAlignment="Stretch" Click="hlMore_Click" />
                        </DataTemplate>
    </telerikPrimitives:RadDataBoundListBox.DataVirtualizationItemTemplate>

    But as the RadJumpList in the example you provided is declared programmatically, how would I add the OnDemandManual button to this?

    Thanks

    Danny

  12. Tsvyatko
    Admin
    Tsvyatko avatar
    833 posts

    Posted 02 Jul 2015 Link to this post

    Hello Danny,

    I have modified the custom control to expose VirtualizingItemDataTemplate so you could set from your page directly.

    Let us know if this is the desired result.

    Regards,
    Tsvyatko
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  13. Danny
    Danny avatar
    11 posts
    Member since:
    Sep 2013

    Posted 02 Jul 2015 Link to this post

    Hi Tsvyatko,

    Thank you for this, this is fantastic! One last question: Is there a way to have the load more button at the top of the scroll bar? My messages are ordered so the new messages are at the bottom and the old messages are at the top. Ideally, I want it so when the user scrolls to the top of the list (the older messages), they can click the more button and get more old messages.

    Thanks

    Danny

  14. Tsvyatko
    Admin
    Tsvyatko avatar
    833 posts

    Posted 07 Jul 2015 Link to this post

    Hello  Danny,

    Unfortunately, DataBoundListBox does not support modifying the virtualizing element position. In this case  an external button might be a better solution.


    Regards,
    Tsvyatko
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top
DevCraft banner