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

LoadStatusTemplate on load on demand menu

1 Answer 54 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Olivier
Top achievements
Rank 1
Olivier asked on 08 Oct 2010, 10:10 AM
Hi,

I'm using a RadMenu to display the first levels of my sitemap.

I use ajax to load menuitems on demand.

It's working well, but it's a little bit slow in IE6, so I would like to display a loading image or something. I'm trying to use the LoadingStatusTemplate property but it doesn't work...

Here's the code from my menu (a UserControl)
<asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" ShowStartingNode="false" />
<telerik:RadAjaxManagerProxy ID="RadAjaxManager1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="RadMenu1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadMenu1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>
<telerik:RadMenu ID="RadMenu1" runat="server"
    DataSourceID="SiteMapDataSource1"
    MaxDataBindDepth="1"
    DataTextField="Title"
    DataValueField="Key"
    DataNavigateUrlField="Url"
    OnItemDataBound="RadMenu1_ItemDataBound">
   <LoadingStatusTemplate>
       <asp:Image runat="server" ID="LoadingImage" ImageUrl="~/common/images/ajax-loader.gif" ToolTip="Loading..." Width="16px" Height="16px" />
   </LoadingStatusTemplate>   
    <WebServiceSettings Path="~/Webservices/SiteMenuService.svc" Method="LoadData" />
    <DataBindings>
        <telerik:RadMenuItemBinding Depth="0" ExpandMode="WebService" />
    </DataBindings>
</telerik:RadMenu>

Any idea if something is wrong or missing ?

Thank you,

Olivier

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 13 Oct 2010, 03:09 PM
Hello Olivier,

You don't need to ajaxify the menu when its items are loaded with a web service, please remove the ajax manager and let us know whether this helps.

All the best,
Yana
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Menu
Asked by
Olivier
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or