The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
Following code is not working with Syncfusion 5.1 version. It works fine with 4.3 version. With 5.1 version i still get "Cross-thread operation not valid" after i handle it. Can you please suggest me regarding this.
private delegate void SetListBoxSelectedIndexCallback(int selectedIndex); private void SetListBoxSelectedIndexProperty(int selectedIndex) { // InvokeRequired required compares the thread ID of the // calling thread to the thread ID of the creating thread. // If these threads are different, it returns true. if (comboBoxBase.ListControl.InvokeRequired) { SetListBoxSelectedIndexCallback d = new SetListBoxSelectedIndexCallback(SetListBoxSelectedIndexProperty); this.Invoke(d, new object[] { selectedIndex }); } else { this.comboBoxBase.ListControl.SelectedIndex = selectedIndex; } }
MUMurugan Syncfusion Team May 22, 2007 11:53 PM UTC
Hi Ravi,
We regret for the inconvenience caused. Could please provide the following details to reproduce the issue as you mentioned?
1.When is the specified method SetListBoxSelectedIndexProperty called? 2.Are you using separate Thread to open the ParentForm? 3.Could you please provide us the sample that is having the issue?
The above details will help us to reproduce the issue and resolve the issue soon.
Thank you for your interest in Syncfusion products.