Hello,
I created a custom Combobox control based on SfComboBox:
public partial class MyComboBox : SfComboBox
{
public MyComboBox()
{
InitializeComponent();
this.DisplayMember = "Text";
this.ValueMember = "Id";
this.MaxDropDownItems = 14;
this.Style.EditorStyle.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204)))));
this.AutoCompleteMode = AutoCompleteMode.SuggestAppend;
this.AutoCompleteSuggestMode = Syncfusion.WinForms.ListView.Enums.AutoCompleteSuggestMode.Contains;
this.Height = 27;
this.DropDownListView.ItemHeight = 30;
this.Font = new System.Drawing.Font("Segoe UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
this.Margin = new System.Windows.Forms.Padding(3, 3, 3, 6);
}
protected override void OnPaint(PaintEventArgs pe)
{
base.OnPaint(pe);
}
protected override void OnCreateControl()
{
base.OnCreateControl();
this.MinimumSize = new(0, 40);
}
}
After I open the combobox and try scroll the appearance go to pieces. Please see attached video for the presentation.
Thank you for help!
BR, SZL
Hi SZL,
We are unable to reproduce the exact issue of yours. When scrolling in the SfComboBox item, some items are disappeared. Please refer the video and the sample from the attachment.
Please provide more details about the requirement or modify our sample and revert to us with a reproducible issue or video. So, it will be helpful to prompt the solution further.
Regards,
Bagavathi Perumal A
Hello,
Thank you! I not clearly understand your message because your example and your video contains appearance problems too with scrolling.
Thank you!
BR, László
Hi SZL,
We are able to see some rendering issue while scrolling, however we observe that it is not exactly same issue that you are facing. Hence. we requested for further information. So that we will make sure that we address both the issues.
Regards,
Bagavathi Perumal A
Hello,
I think the problem behavior is depends on the count of items in the combobox. In my example the first comobox contains more less items than the second and the behavior is not the same (it is no exactly same).
I think the padding+margin+itemheight(+maybe border width) size calculation and rendering this size can be wrong, but this is only my opinion. The count of items can cause different behavior, but there are rendering issue in all cases.
Thank you!
BR, László
Hi SZL,
We have confirmed the reported scenario is a defect and logged a report for the reported scenario “The DropDown Items are not rendered properly when adding multiple items to SfComboBox”. We will include the fix in our upcoming Weekly NuGet release which is scheduled on 04th October 2022. The fix will also resolve your reported rendering issue when scrolling.
You can track the status of this defect using the following feedback link: The DropDown Items are not rendered properly when adding multiple items to SfComboBox in WinForms | Feedback Portal (syncfusion.com)
If you have any more specification replication procedures or a scenario to be tested, you can add it as a comment in the portal.
Please let us know if you need any further assistance.
Hi,
Thank you very much for help! The link is access denied for me, but its very good that the fix incoming in october.
Have a nice day!
Hi SZL,
Regards,
Bagavathi Perumal A
Hi SZL,
Sorry
for the inconvenience caused.
We are still working on this issue with high priority. We will update you the
fix in our upcoming NuGet release which is scheduled on 11th October 2022.
We appreciate your patience until then.
Regards,
Harinath N
Hi, Of course, no problem, thank you for the information!
BR, SZL
Hi Szl,
Thanks for your patience.
We have included the fix in our latest Weekly NuGet release v20.3.0.49 which is available for download (https://www.nuget.org/). We thank you for your support and appreciate your patience in waiting for this update. Please get in touch with us if you would require any further assistance.
Regards,
Harinath N