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

Loading msg not appearing for Load on Demand

1 Answer 58 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Shuja
Top achievements
Rank 1
Shuja asked on 14 Jan 2013, 05:36 PM
Hi,

I have a combobox which i've setup to use the EnableAutomaticLoadOnDemand. This works fine. When you click on the combobox, the dropdown list is populated using the ItemsRequested event.
However, looking at the demo examples on the telerik site, the load on demand examples have a "loading..." msg appear by default while the combobox is being populated. But my combobox has lost this msg & so it never appears. After you click on the combobox, a blank drop down list appears & then a few sconds later it is populated with the data items. I would like to have the loading msg visible but i can't seem to get it working (even though i have specifically set the msg text in my combobox). See below for my code:
<telerik:RadComboBox ID="ApprovalItem" runat="server" AllowCustomText="false"
AppendDataBoundItems="True" CssClass="ComboBoxPadding"
DataSourceID="DS_CostCentre" DataTextField="CCDesc" DataValueField="costcentre"
DropDownWidth="420px" EmptyMessage="Select Approval Item:" Enabled="False"
Font-Names="Verdana" Font-Size="8pt" HighlightTemplatedItems="true"
MarkFirstMatch="true" TabIndex="9" EnableAutomaticLoadOnDemand="True"
EnableVirtualScrolling="true" ShowMoreResultsBox="true"
ShowWhileLoading="true" LoadingMessage="Loading..." ShowDropDownOnTextboxClick="true"
onitemsrequested="ApprovalItem_ItemsRequested">
</telerik:RadComboBox>

Am i doing something wrong in my combobox? I've tried the code without the LoadingMessage value to see if it appears by default but i just get a blank.

Thanks in advance for any help.

Shuja

1 Answer, 1 is accepted

Sort by
0
Dimitar Terziev
Telerik team
answered on 18 Jan 2013, 07:28 AM
Hello Shuja,

I have inspected the provided implementation and I have noticed that you are using the AutomaticLoadOnDemand functionality as well as handling the OnItemsRequested server-side event. In general you should ether load items via the aforementioned event or use the automatic functionality and get the items from the data source defined through the DataSourceID property.

Regards,
Dimitar Terziev
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
ComboBox
Asked by
Shuja
Top achievements
Rank 1
Answers by
Dimitar Terziev
Telerik team
Share this question
or