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

Message when no items are returned in Load on Demand mode

1 Answer 29 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Alfonso
Top achievements
Rank 1
Alfonso asked on 29 Jan 2015, 09:58 AM
Hi, 

I have a RadComboBox with Load on Demand activated and data is databound when OnItemsRequested event is fired.
  <telerik:RadComboBox ID="cmbVisualizationTemplates" runat="server"
    EnableLoadOnDemand="true"
    EmptyMessage="Select a template"
    Filter="Contains"
    AllowCustomText="false"
    DataTextField="NAME"
    DataValueField="ID_VISUALIZATION_TEMPLATE"
    OnClientItemsRequesting="selectedTemplatesRequesting"
    OnClientSelectedIndexChanged="selectedTemplateChanged"
    OnItemsRequested="cmbVisualizationTemplates_ItemsRequested"
    Style="width: 135px;">
</telerik:RadComboBox>


How can I show a message "No records found" when no items are returned to ComboBox?

Thanks for your help!

Alfonso

1 Answer, 1 is accepted

Sort by
0
Dimitar Terziev
Telerik team
answered on 02 Feb 2015, 07:51 AM
Hi Alfonso,

You could use the event handler function of the OnClientItemRequested event and use the code from the following help article to show a message.

Regards,
Dimitar Terziev
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
ComboBox
Asked by
Alfonso
Top achievements
Rank 1
Answers by
Dimitar Terziev
Telerik team
Share this question
or