I want to add grand child in web explorer bar through cs code,not through html
I have created group and add items to them but i want to add sub items(grand child)
Can some one please guide me that how can I add sub child(grand child) in web explorer bar?
Here is my code
ExplorerBarGroup group = new ExplorerBarGroup();
group.Text = "Drives"; this.WebExplorerBar1.Groups.Add(group); item = new ExplorerBarItem(); item.Text = "C:"; group.Items.Add(item); item = new ExplorerBarItem(); item.Text = "D:";
Hello Zeshan,
After investigating this further, I determined that your requirement could be achieved by creating a new ExploreBarItem and adding this item to the Items collection of the parent. Afterwards the parent should be added to the Items collection of the group:
group.Text = "Drives";
this.WebExplorerBar1.Groups.Add(group);
ExplorerBarItem item = new ExplorerBarItem();
item.Text = "C:";
ExplorerBarItem subItem = new ExplorerBarItem();
subItem.Text = "Program Files";
item.Items.Add(subItem);
group.Items.Add(item);
Below I am attaching a sample, demonstrating the described behavior. Please test it on your side and let me know if you need any further information regarding this matter.
Regards,
Monika Kirkova,
Infragistics
WebExplorerBar.zip
Can you please email me to discuss the issue?
zeshanchaudhary2772@gmail.com
I am glad that you find my suggestion helpful and were able to solve your issue.
According to our support policy, we handle support cases either via threads in this forum or support cases in our system only. This helps us ensure that you queries are responded with the corresponding timeframe for your support service level.
Additionally, we handle single issue per support case. Every new query requires a new case to be created. This helps us keep track of your issues and ensures that every question is addressed correctly.
Thank you for using Infragistics components.
Regards, Monika Kirkova, Infragistics