clearing a asp:listbox takes too much of time
-
Hi, I am trying to clear the items in listbox using .clear method. but this takes too much of time. currently my listbox contains about 5000 records, but when i try to clear the listbox it takes almost around 1 min. any workaround for this Sandeep Kumbhar
-
Hi, I am trying to clear the items in listbox using .clear method. but this takes too much of time. currently my listbox contains about 5000 records, but when i try to clear the listbox it takes almost around 1 min. any workaround for this Sandeep Kumbhar
Yes it will take some long time to load & clear in web page. I think list-box with around 5000 items not advisable, you may try auto-complete extender or Gridview(with filter/sorting options load dynamically) so that end user can search data entering starting chars. It's just my suggestion.
thatraja
-
Yes it will take some long time to load & clear in web page. I think list-box with around 5000 items not advisable, you may try auto-complete extender or Gridview(with filter/sorting options load dynamically) so that end user can search data entering starting chars. It's just my suggestion.
thatraja
Please try to use javascript , it will take less time.
Gaurav Dudeja http://www.gdinfotechindia.com
Dont be afraid of changing your life to better ! -
Hi, I am trying to clear the items in listbox using .clear method. but this takes too much of time. currently my listbox contains about 5000 records, but when i try to clear the listbox it takes almost around 1 min. any workaround for this Sandeep Kumbhar
Hw abt setting the datasource=null provided u are using the datasource property for binding the listbox.
-
Hi, I am trying to clear the items in listbox using .clear method. but this takes too much of time. currently my listbox contains about 5000 records, but when i try to clear the listbox it takes almost around 1 min. any workaround for this Sandeep Kumbhar
sanjubaba wrote:
currently my listbox contains about 5000 records
You can clear the list box just set the datasource as null if you are binding the list from data source. But, My questions is that why you are binding this amount of Records with your List ? This is seriouly impact performance. Thanks !
Cheers ! Abhijit Jana | MVP Web Site : abhijitjana.net | Follow Me @ twitter Read my Latest Article :Mastering Debugging in VS 2010