Popup Dismissed unexpexpected

4 posts, 1 answers
  1. Binu
    Binu  avatar
    8 posts
    Member since:
    Apr 2012

    Posted 17 May Link to this post

    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);

     

     

  2. Answer
    Hristo
    Admin
    Hristo avatar
    714 posts

    Posted 18 May Link to this post

    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.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Binu
    Binu  avatar
    8 posts
    Member since:
    Apr 2012

    Posted 03 Jun in reply to Hristo Link to this post

    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

  5. Hristo
    Admin
    Hristo avatar
    714 posts

    Posted 08 Jun Link to this post

    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.
Back to Top