Issue with adding Treeview within GroupBar

Hi

My Company is currently trying out the evaluation version of Syncfusion. We are using GroupBar and within a GroupBarItem we need to have a Treeview.

We tried using an xml file to load the Treeview and this works fine.

However we need to load the treeview dynamically.

I tried looking at some of the sample codes, but cant find any way to include a Treeview Dynamically within the GroupBarItem.

Please Help.

-Jeena


1 Reply

MW Melba Winshia Syncfusion Team June 6, 2008 09:42 AM UTC

Hi Jeena,

Thank you for evaluating Syncfusion Products.

You can add TreeView within GroupBar dynamically by using the below code:


'Add treeview to GroupBarTemplateControl
Dim template As GroupBarTemplateControl = New GroupBarTemplateControl()
template.ID = "templateId"
template.Controls.Add(treeview)
Me.Groupbar2.Templates.Add(template)

'Add GroupBarTemplateControl to GroupBarItem
Dim networkPlace As GroupBarItem = New GroupBarItem()
networkPlace.TemplateID = "templateId"
networkTasks.Items.Add(networkPlace)
Me.Groupbar2.Items.Add(networkTasks)


Please refer the sample in the below link which illustrates the above:

http://websamples.syncfusion.com/samples/Tools.Web/6.2.0.40/Tools_Asp_GroupbarItem_46877/main.htm

Please try this and let me know if this helps.

Thanks,
Melba



Loader.
Up arrow icon