Hi there,
Bit of an odd problem here: I have a RadAjaxLoadingPanel that I want to display when I'm doing some client-side declarative data binding (http://demos.telerik.com/aspnet-ajax/grid/examples/client/declarativedatabinding/defaultcs.aspx). According to this http://www.telerik.com/help/aspnet-ajax/ajax-show-hide-loadingpanel.html , I can show and hide it via JavaScript. I've hooked into the RadGrid's client events of OnDataBinding and OnDataBound to show and hide the loading panel respectively.
Here are the two relevant JS functions, which are in a RadScriptBlock:
The odd thing is, the $find for RadAjaxLoadingPanel1 does not find the control, i.e. it comes back as null. I get the currentControl, which is the RadGrid, but not the loading panel. If I use document.getElementById, it finds the control but show(xyz) isn't supported.
I'll just mention that the grid, loading panel and script block are in a ASP.Net .ascx control, which gets loaded onto a content page inside a master page.
Thank you,
Mike K.
Bit of an odd problem here: I have a RadAjaxLoadingPanel that I want to display when I'm doing some client-side declarative data binding (http://demos.telerik.com/aspnet-ajax/grid/examples/client/declarativedatabinding/defaultcs.aspx). According to this http://www.telerik.com/help/aspnet-ajax/ajax-show-hide-loadingpanel.html , I can show and hide it via JavaScript. I've hooked into the RadGrid's client events of OnDataBinding and OnDataBound to show and hide the loading panel respectively.
Here are the two relevant JS functions, which are in a RadScriptBlock:
var currentLoadingPanel = null;
var currentControl = null;
function ShowLoading() {
currentControl = $find("<%= uxRGC.ClientID %>");
currentLoadingPanel = $find('<%= RadAjaxLoadingPanel1.ClientID %>');
currentLoadingPanel.show(currentControl);
}
function HideLoading() {
if (currentLoadingPanel != null) {
currentLoadingPanel.hide(currentUpdatedControl);
}
currentUpdatedControl = null;
currentLoadingPanel = null;
}
The odd thing is, the $find for RadAjaxLoadingPanel1 does not find the control, i.e. it comes back as null. I get the currentControl, which is the RadGrid, but not the loading panel. If I use document.getElementById, it finds the control but show(xyz) isn't supported.
I'll just mention that the grid, loading panel and script block are in a ASP.Net .ascx control, which gets loaded onto a content page inside a master page.
Thank you,
Mike K.