HI I am not able to view the loading image in telerik:RadAjaxLoadingPanel in mozilla browser,its working fine in IE, below is my code
My requirement is need to load treeview datasource dynamically on click of button using Sitemap datasource,here i am keeping treeview inside update panel
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
<script type="text/javascript">
var currentLoadingPanel = null;
var currentUpdatedControl = null;
function RequestStart(sender, args) {
var loadingImage = document.getElementById('<%= RadAjaxLoadingPanel1.FindControl("Image1").ClientID %>');
var panel1 = $get("<%= Panel1.ClientID %>");
loadingImage.style.position = "relative";
loadingImage.style.top = (parseInt(td1.style.height) / 3) + "px";
currentLoadingPanel = $find("<%= RadAjaxLoadingPanel1.ClientID%>");
if (args.get_eventTarget() == "<%= imbFleetManagement.UniqueID %>") {
currentUpdatedControl = "<%= Panel1.ClientID %>";
//show the loading panel over the updated control
currentLoadingPanel.show(currentUpdatedControl);
}
</script>
</telerik:RadCodeBlock> <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="imbFleetManagement">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="radTvwFleetMgmnt" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
<ClientEvents OnRequestStart="RequestStart" OnResponseEnd="ResponseEnd" />
</telerik:RadAjaxManager>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">
<div class="loading">
<asp:Image ID="Image1" runat="server" ImageUrl="~/images/loading1.gif" AlternateText="loading" />
</div>
</telerik:RadAjaxLoadingPanel>
<td align="center" valign="bottom" style="width: 104px">
<asp:ImageButton ImageUrl="~/images/top_nav_cust_manage.jpg" CssClass="topnavcust"
ID="imbCustManagement" runat="server" onmouseover="this.src='../images/top_nav_cust_manage_hover.jpg';"
onmouseout="this.src='../images/top_nav_cust_manage.jpg';" ToolTip="Customer Management"
OnClick="imbCustManagement_Click" />
</td>
<asp:UpdatePanel runat="server" ID="UpdatePanel" UpdateMode="Conditional">
<Triggers>
<asp:AsyncPostBackTrigger ControlID="imbFleetManagement" /> </Triggers>
<ContentTemplate>
<asp:Panel ID="Panel1" runat="server" CssClass="module1"> <asp:SiteMapDataSource ID="SiteMapDataSource1" ShowStartingNode="false" runat="server" />
<telerik:RadTreeView ID="radTvwFleetMgmnt" DataSourceID="SiteMapDataSource1"
runat="server" Style="white-space: normal"
Skin="Vista">
</asp:Panel>
</ContentTemplate>
</asp:UpdatePanel>
<td style="height: 720px; padding-left: 7px; padding-top: 12px" valign="top">
<asp:UpdatePanel runat="server" ID="UpdatePanel2" UpdateMode="Conditional">
<Triggers>
<asp:AsyncPostBackTrigger ControlID="radTvwFleetMgmnt" />
</Triggers>
<ContentTemplate>
<asp:ContentPlaceHolder ID="ContentArea" runat="server">
</asp:ContentPlaceHolder>
</ContentTemplate>
</asp:UpdatePanel>
</td>
Please help me its very urgent
Thanks in Advance!
Srinivas
<asp:UpdatePanel runat="server" ID="UpdatePanel" UpdateMode="Conditional">
<Triggers>
<asp:AsyncPostBackTrigger ControlID="imbFleetManagement" />
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">
<div class="loading">
<asp:Image ID="Image1" runat="server" ImageUrl="~/images/loading1.gif" AlternateText="loading" />
</div>
</telerik:RadAjaxLoadingPanel>
My requirement is need to load treeview datasource dynamically on click of button using Sitemap datasource,here i am keeping treeview inside update panel
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
<script type="text/javascript">
var currentLoadingPanel = null;
var currentUpdatedControl = null;
function RequestStart(sender, args) {
var loadingImage = document.getElementById('<%= RadAjaxLoadingPanel1.FindControl("Image1").ClientID %>');
var panel1 = $get("<%= Panel1.ClientID %>");
loadingImage.style.position = "relative";
loadingImage.style.top = (parseInt(td1.style.height) / 3) + "px";
currentLoadingPanel = $find("<%= RadAjaxLoadingPanel1.ClientID%>");
if (args.get_eventTarget() == "<%= imbFleetManagement.UniqueID %>") {
currentUpdatedControl = "<%= Panel1.ClientID %>";
//show the loading panel over the updated control
currentLoadingPanel.show(currentUpdatedControl);
}
</script>
</telerik:RadCodeBlock> <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="imbFleetManagement">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="radTvwFleetMgmnt" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
<ClientEvents OnRequestStart="RequestStart" OnResponseEnd="ResponseEnd" />
</telerik:RadAjaxManager>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">
<div class="loading">
<asp:Image ID="Image1" runat="server" ImageUrl="~/images/loading1.gif" AlternateText="loading" />
</div>
</telerik:RadAjaxLoadingPanel>
<td align="center" valign="bottom" style="width: 104px">
<asp:ImageButton ImageUrl="~/images/top_nav_cust_manage.jpg" CssClass="topnavcust"
ID="imbCustManagement" runat="server" onmouseover="this.src='../images/top_nav_cust_manage_hover.jpg';"
onmouseout="this.src='../images/top_nav_cust_manage.jpg';" ToolTip="Customer Management"
OnClick="imbCustManagement_Click" />
</td>
<asp:UpdatePanel runat="server" ID="UpdatePanel" UpdateMode="Conditional">
<Triggers>
<asp:AsyncPostBackTrigger ControlID="imbFleetManagement" /> </Triggers>
<ContentTemplate>
<asp:Panel ID="Panel1" runat="server" CssClass="module1"> <asp:SiteMapDataSource ID="SiteMapDataSource1" ShowStartingNode="false" runat="server" />
<telerik:RadTreeView ID="radTvwFleetMgmnt" DataSourceID="SiteMapDataSource1"
runat="server" Style="white-space: normal"
Skin="Vista">
</asp:Panel>
</ContentTemplate>
</asp:UpdatePanel>
<td style="height: 720px; padding-left: 7px; padding-top: 12px" valign="top">
<asp:UpdatePanel runat="server" ID="UpdatePanel2" UpdateMode="Conditional">
<Triggers>
<asp:AsyncPostBackTrigger ControlID="radTvwFleetMgmnt" />
</Triggers>
<ContentTemplate>
<asp:ContentPlaceHolder ID="ContentArea" runat="server">
</asp:ContentPlaceHolder>
</ContentTemplate>
</asp:UpdatePanel>
</td>
Please help me its very urgent
Thanks in Advance!
Srinivas
<asp:UpdatePanel runat="server" ID="UpdatePanel" UpdateMode="Conditional">
<Triggers>
<asp:AsyncPostBackTrigger ControlID="imbFleetManagement" />
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">
<div class="loading">
<asp:Image ID="Image1" runat="server" ImageUrl="~/images/loading1.gif" AlternateText="loading" />
</div>
</telerik:RadAjaxLoadingPanel>