Deactivate Virtualization

6 posts, 0 answers
  1. Tareq
    Tareq avatar
    36 posts
    Member since:
    Jun 2011

    Posted 04 Apr 2012 Link to this post

    I'm trying to deactivate the virtualization in the RadDataBoundListBox control.

    I used to do it in the normal ListBox, by changing the itempanel to a normal stackpanel (instead of the virtualizingstackpanel).

    is there a way to deactivate it in the telerik control?
  2. Deyan
    Admin
    Deyan avatar
    2038 posts

    Posted 05 Apr 2012 Link to this post

    Hi Tareq,

    RadDataBoundListBox has been designed with UI virtualization in mind and therefore disabling it is currently not possible since it is actually the core of the control. It brings significant performance and memory consumption improvements to the application which uses the control.

    Could you please share with us in what kind of scenario would you need to have this feature off and how it affects your development process?

    Thanks for your time!

    All the best,
    Deyan
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  3. DevCraft banner
  4. Tareq
    Tareq avatar
    36 posts
    Member since:
    Jun 2011

    Posted 05 Apr 2012 Link to this post

    Hi, Thanks for answering.

    I needed this because I have a short listbox (less than 10 items) and they have images binded to some http links.
    when i scroll down, it loads the images again.(virtualizing)

    I dont want to use ListBox coz I want to use the ItemAddedAnimation of the Rad control.
  5. Deyan
    Admin
    Deyan avatar
    2038 posts

    Posted 05 Apr 2012 Link to this post

    Hello Tareq,

    Normally, the Image element caches the loaded picture and does not make further web requests to load it again when the same Uri is provided. Could you please share some further details on your scenario (View Models and ListBox setup) so that we can take a look and see how we can further help?

    You can open a new support ticket if you do not want to publically share your code in our forums.

    Thanks for your time.

    Greetings,
    Deyan
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  6. Tareq
    Tareq avatar
    36 posts
    Member since:
    Jun 2011

    Posted 05 Apr 2012 Link to this post

    Yea I know, sorry, this info isnt important. (it doesnt matter if its external image (http) or internal)

    the virtualization still works with local images. I need to disable this
  7. Deyan
    Admin
    Deyan avatar
    2038 posts

    Posted 09 Apr 2012 Link to this post

    Hi Tareq,

    As I said, the RadDataBoundListBox is designed with UI virtualization in mind and you cannot disable it. However, you could use the RealizedItemsBufferScale property to increase the UI virtualization buffers' size so that more visual containers are realized at once:

    this.radDataBoundListBox.RealizedItemsBufferScale = 4.0;

    This will make the UI virtualization buffers 4 times the size of the control which will increase the amount of visual containers being realized.

    Let me know in case I can further assist you.

    Kind regards,
    Deyan
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top
DevCraft banner