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. Image for the cookie policy date

Dynamic add/remove baritem to/from xpmenu bar

Hello There,
V3.3.0 VS.NET2003

I am trying to add/remove baritem to/from XPMenu bar by code.
I use this line to clear the existing bars before adding new baritems. but it doesn''t work.
How can I do it?
// clear the existing bars
barSubModule.Items.Clear();

I attached my sample. click ''Section'' will add Section''s baritem, click ''Report'' will add Report''s item, but they do not clear the previous exsiting items.


Regards,

Lan




WindowsApplication220.zip

2 Replies

AD Administrator Syncfusion Team September 30, 2006 03:51 PM UTC

I am sorry. I withdraw this post because I''ve posted same question in July 13,06 and Mano has already answered my question. Thanks.


>Hello There,
V3.3.0 VS.NET2003

I am trying to add/remove baritem to/from XPMenu bar by code.
I use this line to clear the existing bars before adding new baritems. but it doesn''t work.
How can I do it?
// clear the existing bars
barSubModule.Items.Clear();

I attached my sample. click ''Section'' will add Section''s baritem, click ''Report'' will add Report''s item, but they do not clear the previous exsiting items.


Regards,

Lan




WindowsApplication220.zip


MJ Mano J Syncfusion Team October 3, 2006 09:12 AM UTC

Hi Lan,

Thanks for the update.

Regards,
Mano

Loader.
Live Chat Icon For mobile
Up arrow icon