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

RadGrid Loading Panel

3 Answers 203 Views
Grid
This is a migrated thread and some comments may be shown as answers.
xvikx
Top achievements
Rank 1
xvikx asked on 16 Jan 2013, 11:10 AM
Hello.
How can I show loading Panel, when I click the Update button(EditMode) and hide it after DataBind().

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 16 Jan 2013, 11:27 AM
Hi,

Try the following code snippet to achieve your scenario.

JS:
<ClientSettings>
    <ClientEvents OnCommand="OnCommand" />
</ClientSettings>

JS:
<script type="text/javascript">
    function OnCommand(sender, args) {
        if (args.get_commandName()=="Update") {
            var loadingPanel = $find("<%= RadAjaxLoadingPanel1.ClientID %>");
            loadingPanel.show(sender.get_id());
        }
    }
</script>

Hope this helps.

Regards,
Princy.
0
xvikx
Top achievements
Rank 1
answered on 16 Jan 2013, 12:17 PM
Thanks Princy,
Loading panel is showing, but when update is complete, is not hiding.
0
Pavlina
Telerik team
answered on 16 Jan 2013, 03:54 PM
Hello,

You can hide the panel explicitly by using the AjaxLoadingPanel's client method hide() as shown in the following article:
http://www.telerik.com/help/aspnet-ajax/ajax-show-hide-loadingpanel.html

All the best,
Pavlina
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
Grid
Asked by
xvikx
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
xvikx
Top achievements
Rank 1
Pavlina
Telerik team
Share this question
or