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.
Unfortunately, activation email could not send to your email. Please try again.

Treeview Template mapping

Thread ID:

Created:

Updated:

Platform:

Replies:

62512 Jun 15,2007 07:08 PM Jun 19,2007 09:23 AM ASP.NET Web Forms (Classic) 1
loading
Tags: Tools
Ted Konkel
Asked On June 15, 2007 07:08 PM

Hi,
I am currently evaluating Essential Tools for ASP.NET. I'm particularly interested in the TreeView, as I think it could help me with the display and manipulation of XML data. I can't get the Template feature working, however.
Suppose I have XML like this:


Picasso


Now suppose my aspx file has the following code:











So I want to associate a template to the binding for Node1 from the XML, and I want that template to take the "name" attribute of Node1 and have that displayed in the TreeView as a templatized label. But I don't know how to establish the mapping between "name" and the Label's Text value. I checked the forums and the Knowledge base, with no luck. Can you help?
Thanks,
Ted


Ramya R [Syncfusion]
Replied On June 19, 2007 09:23 AM

Hi Ted,

Thank you for your interest in Syncfusion Products.

The xml file that is to be binded to the TreeView control should be created in a specific format as mentioned in the documentation link provided below and only certain properties can used while binding data to the treeview. The Properties available for databinding can be viewed by rightclicking on the TreeView in designtime and choosing Edit TreeViewNode Databindings... .

Documentation Link:
http://www2.syncfusion.com/ug/Default.aspx##Essential%20Studio.chm/ToolsWeb/XmlBinding.html

Also kindly refer the XMLDataBinding(Syncfusion\EssentialStudio\5.1.0.51\Web\tools.web\Samples\2.0\TreePackage\TreeView- Advanced Features\XMLDataBinding) sample which ships with our Essential Tools Product Package to know how a treeview can be created by binding a xml file to it.

Please let me know if you have any queries.

Thanks & Regards,
Ramya.

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.

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.

;