This is a migrated thread and some comments may be shown as answers.
Rad Combobox loading panel issue
2 Answers 37 Views
This is a migrated thread and some comments may be shown as answers.
Karthik
Top achievements
Rank 1
Karthik asked on 01 Mar 2013, 05:02 AM
Hi,
Instead of a LoadingMessage = "Loading..." , I would like to add a spinning.gif in combobox. Is it possible???   

2 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 1
answered on 01 Mar 2013, 06:17 AM
Hello Karthik,

Yes, it is possible to show a custom image instead of the Loading message. Please have a look at the following code I tried.

ASPX:
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" EnableAJAX="true" DefaultLoadingPanelID="RadAjaxLoadingPanel1">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="RadComboBox2">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadComboBox2" LoadingPanelID="AjaxLoadingPanel1">
                </telerik:AjaxUpdatedControl>
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" Transparency="80" MinDisplayTime="300"
    runat="server">
    <asp:Image ID="l" runat="server" ImageUrl="~/Images/LoadingPanelImage1.gif"  AlternateText="Loading" />
</telerik:RadAjaxLoadingPanel>
<telerik:RadComboBox ID="RadComboBox2" runat="server" EnableLoadOnDemand="True" ShowMoreResultsBox="true"
    OnItemsRequested="RadComboBox2_ItemsRequested" OnClientItemsRequesting="ClientItemsRequesting"
    OnClientItemsRequested="ClientItemsRequested">
</telerik:RadComboBox>

JavaScript:
<script type="text/javascript">
    function ClientItemsRequesting(sender, args) {
        var loadingPanel = $find("<%= RadAjaxLoadingPanel1.ClientID %>");
        loadingPanel.show(sender.get_id());
    }
    function ClientItemsRequested(sender, args) {
        var loadingPanel = $find("<%= RadAjaxLoadingPanel1.ClientID %>");
        loadingPanel.hide(sender.get_id());
    
</script>

Thanks,
Princy.
0
Karthik
Top achievements
Rank 1
answered on 01 Mar 2013, 09:22 AM
Hello Princy,
Thank you so much for the excellent demo you posted.  It was very helpful.
Asked by
Karthik
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 1
Karthik
Top achievements
Rank 1
Share this question
or