Hi everyone,
Here's my RadListBox:
Here's the client-side Javascript code that I use to remove items (countries) after an AJAX call to a web-service:
I have found that the list box is correctly cleared; however, the "[No countries selected]" message is not displayed. If I remove the items on the server (via a post-back), the message is shown.
Has anyone else noticed this? Is there something I can do to the list-box object on the client in order for the message to be shown?
Ed Graham
Here's my RadListBox:
<div> <telerik:RadListBox id="rlbCountries" runat="server" EnableEmbeddedScripts="false" DataTextField="CountryName" DataValueField="CountryID" EmptyMessage="[No countries selected]" Width="100%" Height="250px" SelectionMode="Multiple"></telerik:RadListBox></div>Here's the client-side Javascript code that I use to remove items (countries) after an AJAX call to a web-service:
var rlbCountries = $find(countriesListBoxID);var items = rlbCountries.get_items();// clear the current countriesitems.clear();I have found that the list box is correctly cleared; however, the "[No countries selected]" message is not displayed. If I remove the items on the server (via a post-back), the message is shown.
Has anyone else noticed this? Is there something I can do to the list-box object on the client in order for the message to be shown?
Ed Graham
