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

[Solved] Load On Demand with XML

5 Answers 95 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Andreas Kaech
Top achievements
Rank 1
Andreas Kaech asked on 28 Apr 2008, 07:34 AM
Hi,
I've problems to get Load On demand with Data from XML-File.
Do you have Sample-Code concerning this?

Thanks,
Andreas

5 Answers, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 30 Apr 2008, 02:15 PM
Hi Andreas Kaech,

I have created a small project demonstrating how to use load on demand treeview and XML file. Please download it and give it a try.

I hope this helps.

Regards,
Veskoni
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Andreas Kaech
Top achievements
Rank 1
answered on 05 May 2008, 09:56 AM
Hi Veskoni,
this sample works great, thanks!
But now I have problems with clientside :-(
I.e. on event OnClientNodeClicked the "get_value()" function always gets null. (before porting the code to "LoadOnDemand" it worked)
What's here to mention?

Thanks for answering,
Andreas

0
Nikolay
Telerik team
answered on 05 May 2008, 01:47 PM
Hi Andreas Kaech,

I tried to reproduce the problem, but to no avail.

Attached, please find another sample project for your reference. Please download the files and give them a go.

What am I missing?

Sincerely yours,
Nick
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Andreas Kaech
Top achievements
Rank 1
answered on 05 May 2008, 06:23 PM
Nick,you are the boss - you missed nothing ;-)
Here is the solution:
Before the LoadOnDemand approach, I loaded XML with the "LoadContentFile"-function. And this function sets the value automatically (I suppose so).
In your example - of course - I have to set the value-field manually.
And this I missed...

Thanks,
Andreas
0
Nikolay
Telerik team
answered on 06 May 2008, 12:06 PM
Hello Andreas Kaech,

I am glad I could help.

Sincerely yours,
Nick
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
TreeView
Asked by
Andreas Kaech
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Andreas Kaech
Top achievements
Rank 1
Nikolay
Telerik team
Share this question
or