How to limit the number of items?

2 posts, 0 answers
  1. hin
    hin avatar
    14 posts
    Member since:
    Jul 2011

    Posted 25 Feb 2013 Link to this post

    I am using a RadListBox to display the result of names from a search. I am binding the RadListbox to my datatable.  If the user doesn't provide any filters, the result would be around 10,000 records. 

    If the search result have over X number of names, how can I show something similar to the "ShowMoreResultsBox" as in a Combobox?  I would like to have about 200 names to display in the RadListbox, anything over would like the "ShowMoreResultsBox". 

    I am using version 2013 Q1 and using VB.NET to program.

    Thanks!

  2. Nencho
    Admin
    Nencho avatar
    978 posts
    Member since:
    Jun 2012

    Posted 28 Feb 2013 Link to this post

    Hello Hin,

    I can suggest you to use the FooterTemplate of the RadListBox to decelerate a Button, which click handler would initialize a request to the DataBase for additional RadListBoxItems. I have prepared a sample project, demonstrating how to implement the above suggestion.

    Note : dll files are removed from the attached sample.

    Greetings,
    Nencho
    the Telerik team

    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.

  3. DevCraft Release
Back to Top