LoadStatusTemplate on load on demand menu

2 posts, 0 answers
  1. Olivier
    Olivier avatar
    3 posts
    Member since:
    Jul 2010

    Posted 08 Oct 2010 Link to this post

    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
  2. Yana
    Admin
    Yana avatar
    5030 posts

    Posted 13 Oct 2010 Link to this post

    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
Back to Top