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

DropDownList won't refresh with empty data

2 Answers 152 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 10 Jul 2013, 06:38 AM
Hi, I have a dropdownlist that I refresh with other code. It loads a list of items to process, once an item is processed the item is basically marked as done and when the dropdownlist is refreshed it no longer is in the dropdownlist. This works just fine till I get to the last item, when it is processed and the dropdownlist is refreshed the json basically returns a empty List<ViewModels.DayEndCycleNumbersViewModel>, 0 items, what happens it the dropdownlist isn't cleared to nothing. If I refresh the page the dropdownlist is empty. How can I get the dropdownlist to be empty when it is refreshed?

Thanks,
John

2 Answers, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 12 Jul 2013, 06:50 AM
Hi John,

In order to clear the DropDownList items, the server should return empty data array. Could you please provide a sample of the JSON responses that server sends (when there is data and when there is no data) so I can examine them? Could you please provide the code which you use to refresh the widget?

Thank you in advance.

Regards,
Alexander Valchev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
John
Top achievements
Rank 1
answered on 12 Jul 2013, 03:17 PM
Hi Alexander,

I actually submitted a support ticket, #714533, which has a sample project showing everything.

Thanks,
John
Tags
DropDownList
Asked by
John
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
John
Top achievements
Rank 1
Share this question
or