Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
543
PopupGalleryTool in Infragistics 10.1
posted

Hi all,

I downloaded and installed the latest Infragistics Windows Forms 2010.1 release but I'm having a very strange behaviour on PopupGalleryTool items.

From Visual Studio designer, I added a PopupGalleryTool to a form. The tool has no items yet. Items are loaded on form's constructor:

 

PopupGalleryTool tool = (PopupGalleryTool) toolbarManager.Tools["batches"];
tool.Items.Clear();
tool.Groups.Clear();

// create new item
GalleryToolItem item = new GalleryToolItem(batch.code);
item.Title = batch.code;
item.Description = SecurityElement.Escape(batch.description);
item.Settings.Appearance.Image = img;
tool.Items.Add(item);

// assign to a group
GalleryToolItemGroup group = tool.Groups.Add(catalog);
tool.Groups[catalog].Items.Add(item.Key);

When I build&run my project, I see that my gallery items are shown correctly (with icon, title and description). But when I click away and then reopen the gallery, items are shown without description. Why? It's really strange... (in 2009 edition the same code was fine).

Thank you, bye! Valentina