Current filter:
                                You should refresh the page.
                                  • I'm trying to create a ImageComboBoxEdit but using the PopupGalleryEdit as the editor.  I wanted a dropdown that could list all the images like a gallery across rows and columns without having to scroll.  The issue is I don't know how to get the selected image to display in the imagecombobox.  I have attached a project trying to do this.

                                1 Solution

                                Creation Date Importance Sort by

                                Hi,

                                To show an image in an edit box, handle the EditValueChanged event and assign a selected item's image to the PopupGalleryEdit.Properties.ContextImageOptions.SvgImage property in the event handler:

                                [C#]
                                private void ImageComboBoxEdit1_EditValueChanged(object sender, EventArgs e) { var edit = sender as PopupGalleryEdit; edit.BeginInvoke(new Action(() => { var item = edit.Properties.Gallery.GetItemByValue(edit.EditValue); if(item != null) { int imageIndex = item.ImageOptions.ImageIndex; edit.Properties.ContextImageOptions.SvgImage = svgImageCollection1[imageIndex]; } })); }

                                Note that the EditValueChanged event is only raised when you assign values to the GalleryItem.Value property.

                                Let me know if you need further assistance.