We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to change "Loading.." text on a TreeView LoadOnDemand ?

Thread ID:

Created:

Updated:

Platform:

Replies:

69712 Nov 8,2007 10:36 PM UTC Jan 8,2008 08:43 PM UTC ASP.NET Web Forms (Classic) 8
loading
Tags: Tools
dymezac
Asked On November 8, 2007 10:36 PM UTC

Hello,

First, I would like to thank Raji who answered two past questions.

I am now searching how to change the default text "Loading.." from the LoadOnDemand Treeview..

We are working on a french site, so if we could translate this text, it wouldb be perfect..

Thank you very much

dym

dymezac
Replied On November 12, 2007 12:54 PM UTC

Hi..

Is there any solution for this problem ?
Or is there an object property that I didn't find ?

Thank you very much


Rajarajeswari S [Syncfusion]
Replied On November 12, 2007 02:03 PM UTC



Hi,

Thanks for your patience,

Yes, it is possible to change the text from english to french using Localization and Globalization. But since it is taking more time to work, we will update you with in 1 business day.

Regards,
Raji


dymezac
Replied On November 13, 2007 02:52 PM UTC

Hello Raji,

Thanks a lot.

I'll wait for your answer then.





Rajarajeswari S [Syncfusion]
Replied On November 14, 2007 05:49 AM UTC

Hi,

Thanks for your patience.

In TreeView you can change the text "Loading..." easily by using the property called LoadingMessage. Please refer the below code snippet which illustrates this:

TreeView1.LoadingMessage="Text in French";

Please let me know if this helps you.

Regards,
Raji



dymezac
Replied On November 14, 2007 10:12 AM UTC

Hello Raji,

Thank you.

Well, I don't find the LoadingMessage property for my instance of SyncFusion Treeview..

Is it because I am working on a 5.102.0.51 version ?

We cannot upgrade to last version because some major functionnalities of Essantial PDF have change and make our application not compile correctly. For this, we are wondering how we are going to do. Is there a solution to have multiple version of SyncFusion in our bin folder ?

If the property is not available on 5.102.0.51, we are not going to be able to translate the LoadingMessage ?


Thank you again,

dym


Suresh Sekarean [Syncfusion]
Replied On November 15, 2007 03:02 AM UTC

Hi,

TreeView loading message can be customized by accessing the current expanded element. This element can be accessed through TreeView client Side events which were triggered on Node select and Node expand. Also Custom Text cannot be set in these itself. So We override the TreeView callback event and Custom text is set in this event before callback.

Please refer the below code snippet,

[Javascript]

//Element which shows the loading message
var LoadingElement=null;

//This event used to store the current expanded element on Node click and Node expand actions
function OnExpand(nodeObj)
{
LoadingElement=document.getElementById(nodeObj.HtmlID+"_CT");
}

//Override TreeView callback event to change the 'Loading Message'
window.onload=Override;
function Override()
{
//Here '_sfTreeView1' is the clientSideObject Property of TreeView. This can be changed by using clientSideObject Property
var _sfTreeView1_callback= _sfTreeView1.callback;
_sfTreeView1.callback = function(arg, async, ev )
{
//Set Custom Text
LoadingElement.rows[0].cells[0].innerHTML = "(Custom Text...)";
_sfTreeView1_callback(arg, async, ev );
}
}

Please refer the below sample and let us know if you need further assistance.

http://websamples.syncfusion.com/samples/Tools.Web/5.1.0.51/F69712/main.htm

Regards,
Sureshsekaran.



dymezac
Replied On November 15, 2007 01:45 PM UTC

Hello,

I'll try this in next days (actually working on something else). In case of problem, I will come back and tell you..

Thank you very much




dymezac
Replied On January 8, 2008 08:43 PM UTC

Hi Raji,

I come back for this problem I met before..
I'm working on it again.

Your code works well, but not if I click on the + or - image

the onexpand javascript function does not raise in this case..

And we still cannot use the last version of syncfusion for the moment, because it will not work with some page using essential pdf (which has been recoded in the last version)




CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;