iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
please let me know how can i populate the tree using the database value. (here i am using oracle)
the values of the tree and its child nodes are in the different tables of the database with some relations.
thanking you
ca
I have just found some way how to populate database via dataset. By populate database in each nodes, it would be similar with WebTreeView unbound. Attached sample is my sample. Hope this helps you.
Regards,Handy
Hi,
I would recommend doing this via LoadOnDemand as you can then decide on each level of the tree what data to load depending on the selected node. This way you don't have to have all levels and info in one big Recordset or XML. See my thread with the viewstate which includes all of the code you need.
Hope this helps.
This is the thread:
http://www.intersoftpt.com/Community/WebTreeView/TreeView-not-keeping-Viewstate/
Unfortunately, our WebTreeView only can be binded by using XMLDataSource or SiteMapDataSource.
If you would like to use with database, you can try our WebGrid SelfReference scenario.
I can't download the sample!
Please re-try again. I have re-uploaded it.
thank you handy..
the tree is working for me... but i have some small problem...
if i give the image for the tree node, it working but the expand image property is not working
here is the code below
protected override void OnInitComplete(EventArgs e)
{
base.OnInitComplete(e);
WebTreeViewNode rootNode = new WebTreeViewNode();
rootNode.Name = "REPORTS";
rootNode.Text = "REPORTS";
rootNode.Image = "~/images/folder-close.jpg";
rootNode.ExpandedImage = "images/folder-open.jpg"; // This is not working
rootNode.Value = "report";
WebTreeView1.Nodes.Add(rootNode);
WebTreeView1.EnableLoadOnDemand = true;
WebTreeView1.AllowNodeEditing = AllowEditing.Yes;
WebTreeView1.AutoPostBackSettings.OnNodeEdit = true;
}
I have tested and it is a minor bug in our WebTreeView. I have forwarded this to our developer with #406 WI number and they will fix it in our next release.
hi,
ok.
also i have tried some button event to catch the selected node. But it seems not working.
below is the code, i have used.
protected void Button1_Click(object sender, EventArgs e)
Label1.Text = WebTreeView1.SelectedNode.ToString();
His example, the database is good, but I have a problem with the options to add, edit, delete, change levels and other events of the treeview. please send me an example with these events
It would be good to publish a couple of examples based on database that is helpful not only work with XML files is very static .
please help me
Thank you for your feedback. Unfortunately, even though it is populated from database, it is assigned into each node one by one. This behavior is unbound behavior. So, you could not add, edit and delete on WebTreeView.
i have created, tree using the method you defined. It is working almost, except some properties like expanded image etc.
Can you please tell me , how can i get the selected node from the backend. Means i want to get the selected node on a button click.
thanks and regards
Please refer to the following thread, for the answer.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname