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

Client-Side Loading Icon

2 Answers 78 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
digitall
Top achievements
Rank 1
digitall asked on 25 Apr 2011, 08:57 PM
I have a treeview that expands with a ServerSideCallBack on certain nodes and shows the icon I setup inside <LoadingStatusTemplate>. Is there a client-side function I can call on a node that would show/hide this on demand? Something like "node.showLoading();" or "node.hideLoading();"?

2 Answers, 1 is accepted

Sort by
0
Kate
Telerik team
answered on 28 Apr 2011, 02:13 PM
Hello digitall,

Unfortunately we do not currently support the functionality that you mention in the forum thread. However, I will address your suggestion to our development team for a future consideration.

All the best,
Kate
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
digitall
Top achievements
Rank 1
answered on 28 Apr 2011, 02:16 PM
I was able to find a workaround for this by using the showLoadingStatus method you expose and just forcing it to show an image:

function showNodeLoading(node) {
    var loadingImage = '<img src=\'/_assets/images/ajax-loader-small.gif\' alt=\'Loading..\' style=\'padding-left: 2px;\' />';
    if (node != null)
        node.showLoadingStatus(loadingImage, Telerik.Web.UI.TreeViewLoadingStatusPosition.AfterNodeText);
}
Tags
TreeView
Asked by
digitall
Top achievements
Rank 1
Answers by
Kate
Telerik team
digitall
Top achievements
Rank 1
Share this question
or