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. Image for the cookie policy date
close icon

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

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

8 Replies

DY dymezac 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



RS Rajarajeswari S Syncfusion Team 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



DY dymezac November 13, 2007 02:52 PM UTC

Hello Raji,

Thanks a lot.

I'll wait for your answer then.






RS Rajarajeswari S Syncfusion Team 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




DY dymezac 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



SS Suresh Sekarean Syncfusion Team 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.




DY dymezac 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





DY dymezac 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)




Loader.
Live Chat Icon For mobile
Up arrow icon