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

How to limit the number of items?

1 Answer 86 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
hin
Top achievements
Rank 1
hin asked on 26 Feb 2013, 01:50 AM
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!

1 Answer, 1 is accepted

Sort by
0
Nencho
Telerik team
answered on 28 Feb 2013, 09:07 AM
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.
Tags
ListBox
Asked by
hin
Top achievements
Rank 1
Answers by
Nencho
Telerik team
Share this question
or