Add GroupViewItem programmatically

Hello,

Is it possible to dynamically add a GroupViewItem to a GroupBarItem?

I do not see any methods or properties on a GroupBarItem which would allow me to add a GroupViewItem. And GroupViewItem's ParentTab property does not have a public setter.

Thanks in advance,
Chad


2 Replies

AD Administrator Syncfusion Team December 4, 2009 03:30 PM UTC

Nevermind. Typical I figure it out 10 minutes after my post. The solution is:

GroupBar gb = new GroupBar();
GroupBarItem gbi = gb.AddTab("dynamically added tab");

GroupView gv = new GroupView();

gbi.Content = gv;

GroupViewItem gvi = gv.AddItem();


PR Padmaja Rajaram Syncfusion Team December 9, 2009 10:22 AM UTC

Hi Chad,

We are glad to hear the you found the solution.
Please let us know if you have any other concerns

Regards,
Padmaja

Loader.
Up arrow icon