This is a migrated thread and some comments may be shown as answers.

Popup Dismissed unexpexpected

3 Answers 97 Views
MultiColumn ComboBox
This is a migrated thread and some comments may be shown as answers.
Binu
Top achievements
Rank 1
Binu asked on 17 May 2016, 10:24 AM

My form having a MultiColumn ComboBox , (version 2016.1.112.40 ) the data bound it it is long, 500+ columns. When i press down arrow next to text area, popup is flashing and dismisses but when i double click it appears.

 

While debugging i realize drop down closing event is being fired due to some 'bubble event / mouse down. What is happening?, The form has lot of other non Rad controls. But control focus remains intact when this happens

 

Please help.

 

Here is my code for initializing it.

 

01.var productService = UnityContainer.Resolve<ProductService>();
02.           var productCodes = new List<DAL.Model.Product>();
03.           var productCodeList = await productService.GetAllProductCode(null);
04. 
05.           if (productCodeList.Any())
06.           {
07.               productCodeList = productCodeList.DistinctBy(x => x.ProductCode).ToList();
08.               productCodeList = productCodeList.Where(x => x.ProductStatusID != null).OrderBy(x => x.ProductCode).ToList();
09.               productCodeList.RemoveAll(x => x.IsDevice == true && x.ProductStatusID == 0);
10.               productCodes.AddRange(productCodeList);
11.           }
12.           var productList = productCodes.Select(x => new CustomComboSourceDto
13.           {
14.               Id = x.ProductID,
15.               Name = x.ProductCode.ToUpper(),
16.               Description = x.ProductDescription
17.           }).ToList();
18. 
19.           productList.Insert(0, new CustomComboSourceDto { Id = -1, Name = string.Empty, Description = string.Empty });
20.           comboBoxProductCode.DataSource = productList;
21. 
22.           FilterDescriptor descriptor = new FilterDescriptor(this.comboBoxProductCode.DisplayMember, FilterOperator.StartsWith, string.Empty);
23.           this.comboBoxProductCode.EditorControl.FilterDescriptors.Add(descriptor);

 

 

3 Answers, 1 is accepted

Sort by
0
Accepted
Hristo
Telerik team
answered on 18 May 2016, 02:28 PM
Hi Binu,

Thank you for writing.

A single click on the arrow button opens the popup and when this is performed for the first time it may take slightly longer time because at that moment the underlying grid is being loaded. Depending on the state of the drop down, a single click opens or closes it. 

The drop down is being opened with an animation defining a DropDownAnimationFrames which you can set to a small value. If you prefer it is also possible to completely disable the animations: 
//this.radMultiColumnComboBox1.MultiColumnComboBoxElement.DropDownAnimationEnabled = false;
this.radMultiColumnComboBox1.MultiColumnComboBoxElement.DropDownAnimationFrames = 1;

I am also sending you attached my test project. In case you keep experiencing issues please modify it according to your local setup and send it back to me.

I hope this helps. Should you have further questions please do not hesitate to write back.

Regards,
Hristo Merdjanov
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
0
Binu
Top achievements
Rank 1
answered on 03 Jun 2016, 12:10 PM

In my RadMultiColumnCombobox. I have added two buttons to the  EditorControl's GridView area( image 2) . i want to add controls above and below of the radgridview. Also how to change the radgridview's header text color and  background as well as alternate row background like the image given below.( image 1).

Please help

0
Accepted
Hristo
Telerik team
answered on 08 Jun 2016, 09:02 AM
Hi Binu,

Thank you for writing back.

The following forum thread discusses a similar scenario and provides a solution how controls can be added to the grid element of RadMultiColumnComboBoxhttp://www.telerik.com/forums/extend-multicolumn-combobox-new-section-with-buttons.

Considering the visual appearance of RadGridView you can handle the formatting events and enable the alternating row color: 
I hope this helps. Should you have further questions please do not hesitate to write back.

Regards,
Hristo Merdjanov
Telerik
Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms.For more information check out this blog post and share your thoughts.
Tags
MultiColumn ComboBox
Asked by
Binu
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Binu
Top achievements
Rank 1
Share this question
or