We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Selected Dropdown background Item always show at index = 0

Hello Syncfusion, 
Athought Combobox.SelectedIndex != 0 but Background dropdown Item always show at index = 0. Only Android, IOS work it well. 
Error version: 17.3.0.21. When I upgratedown version 17.2.0.51 work well all platform.
Please check your control. Thanks

13 Replies

HM Hemalatha Marikumar Syncfusion Team October 31, 2019 05:05 PM UTC

Hi Nguyen Khoa Lu, 
  
Greetings from Syncfusion. 
  
We would like to let you know that we were unable to reproduce the reported issue “Selected Dropdown background Item always show at index 0”. We have provided -1 as SelectedIndex of SfComboBox, no more items are highlighted in dropdown as per in below screenshot 
 
  
Output: SelectedIndex = -1: 
  


 
After select the item from suggestion box: 
   


 Sample Link:
 
  
Please check with the sample and if the issue mentioned occurs in different scenario. Please modify the sample with the issue reproducing sample and provide the video for the reproducing issue which will be helpful for us to analyze further and provide an appropriate solution. 
 
Regards, 
Hemalatha M. 



NK Nguyen Khoa Lu November 29, 2019 10:01 AM UTC

Thanks for your answer. But, please check it in my app 
https://play.google.com/apps/testing/com.Fast.eInvoice


HM Hemalatha Marikumar Syncfusion Team December 2, 2019 12:45 PM UTC

 
Hi Nguyen Khoa Lu, 
 
Thanks for your update. 
 
We have checked the provided link and we were unable to find any other download option on that, even checked it by changing its language 
 
 
 
 
 
 
 
Can you please check this and update us with issue reproducing sample with proper replication procedure to check further and provide a better solution? 
 
Regards, 
Hemalatha M. 



NK Nguyen Khoa Lu December 5, 2019 04:05 AM UTC

Sorry guy, I was published my app to all countries, Please download and check it on Home page. Thanks you very much


HM Hemalatha Marikumar Syncfusion Team December 6, 2019 10:26 AM UTC

Hi Nguyen Khoa Lu,

We have installed your application from the PlayStore and have checked that there are two Buttons with the Popup shown below,
 
 
Output 1 
Output 2 
 
 


 
Output 1 - shows the DropDown without predefined value  
 
Output 2 - shows the DropDown with the SelectedIndex 0.  
 
Please let us know the difference between the two Buttons used and also if possible, please provide the application for us to check the difference in both the Buttons since we are not aware of the application scenario and it has not been reproduced in the simple sample or please share the SfComboBox related code snippet to check it our side. 

Please let us know if you have any concerns. 
 
Regards, 
Hemalatha M. 



NK Nguyen Khoa Lu March 5, 2020 01:49 PM UTC

Sorry about time reply. Im busy and can not create a demo project. However, I have an demo project now. When I click another button and using SfCombobox.IsDropDownOpen = true then SfCombobox.SelectedDropDownItemColor always show at 0. 
I was attach a file. Check in code or read this code. I have this issue when using version after 17.2.0.51. Only Android has issue. 
public class SFCombobox: ContentPage
    {
        List list;
        SfComboBox combo;
        Button btn;
        public SFCombobox():base()
        {
            list = new List();
            combo = new SfComboBox();
            btn = new Button();
            list.Add("AAAAA");
            list.Add("BBBBB");
            list.Add("CCCCC");
            list.Add("DDDDD");
            list.Add("EEEEE");
            list.Add("FFFFF");
            list.Add("GGGGG");
            list.Add("HHHHH");
            list.Add("KKKKK");
            list.Add("IIIII");
            combo.ComboBoxSource = list;
            combo.SelectedItem = "KKKKK";
            combo.WidthRequest = 1;
            btn.Text = "Toogle";
            btn.Clicked += Btn_Clicked;
            this.Content = new StackLayout() { Children = { btn, combo } };
        }

        private void Btn_Clicked(object sender, EventArgs e)
        {
            combo.IsDropDownOpen = !combo.IsDropDownOpen;
        }
    }

Attachment: ComboBoxSample1098665757_e0dbf260.zip


AS Anandraj Selvam Syncfusion Team March 9, 2020 12:18 PM UTC

Hi Nguyen Khoa Lu,  
  
Thanks for the update.  
  
We would like to let you know we have reproduced the reported issue and fixed the same. Please find the patch from below link  
   
Advanced approach – use only if you have specific needs and can directly replace existing assemblies for your build environment  
  
 (OR)  
  
Please find the patch assemblies alone from below location:  
  
 (OR)  
   
Please find the NuGet from below location:  
   
Assembly Version: 17.4.0.46 
   
This fix will be included in our upcoming Volume 1 release which is expected to be rolled out on end of March 2020. 
  
Regards, 
Anand Raj S. 



NK Nguyen Khoa Lu April 5, 2020 06:39 AM UTC

@Hemalatha Marikumar
[Syncfusion Version 18 not working]
New problem when I using another button show DropdownBox.
When I using ItemsSource =  List<String> it work fine.
But when I using DataSource = ObservableCollection<Item> it not show. 
Here my code.


Attachment: ComboBoxSample1098665757_744f179d.zip


NK Nguyen Khoa Lu April 5, 2020 06:41 AM UTC

I was waited a long time until the end of March and still got the same problem. 


NK Nguyen Khoa Lu April 5, 2020 07:27 AM UTC

One more issue, when I using Combobox.Text = "sometext", it not show too
Here my code:
 public class SFCombobox : ContentPage
    {
        SfComboBox combo;
        Button btn;
        EmployeeViewModel model;
        List<string> list;
        public SFCombobox() : base()
        {
            combo = new SfComboBox();
            btn = new Button();
            model = new EmployeeViewModel();
            InitList();
            combo.BindingContext = model;
            combo.Text = "DDDDD";
            //combo.SelectedValue = "DDDDD";
            combo.ComboBoxSource = list;
            btn.Text = "Toogle";
            btn.Clicked += Btn_Clicked;
            //combo.SelectedValuePath = "ID";
            //combo.DisplayMemberPath = "Name";
            //combo.SetBinding(SfComboBox.DataSourceProperty, "EmployeeCollection");
            this.Content = new StackLayout() { Children = { btn, combo } };
        }

        private void Btn_Clicked(object sender, EventArgs e)
        {
            combo.IsDropDownOpen = true;
        }

        private void InitList()
        {
            list = new List<string>();
            list.Add("AAAAA");
            list.Add("BBBBB");
            list.Add("CCCCC");
            list.Add("DDDDD");
            list.Add("EEEEE");
            list.Add("FFFFF");
            list.Add("GGGGG");
            list.Add("HHHHH");
            list.Add("KKKKK");
            list.Add("IIIII");
        }
    }


SP Sakthivel Palaniyappan Syncfusion Team April 6, 2020 11:05 AM UTC

Hi Nguyen Khoa Lu,

We have checked the sample provided in the last update and we suggest you to set the selected item for the combobox as like below code snippet to resolve the reported issue since the text has been updated and the SelectedItem is not  highlighted.

Code Snippet:  
combo.SelectedItem = model.EmployeeCollection[0]; 

We have modified the sample based on this and please find the sample from this

Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/ComboBoxSample1098665757-464712935

Please get back us, if you have any concern.

Regards,
Sakthivel P.



NK Nguyen Khoa Lu April 6, 2020 11:45 AM UTC

Thanks for your anwer, But I want using Text property because in the first time I dont want invoke SelectionChanged event. 


SP Sakthivel Palaniyappan Syncfusion Team April 7, 2020 04:33 PM UTC

Hi Nguyen Khoa Lu,

Currently, we do not have the support for highlighting the selected dropdown when setting the text. Hence, we have considered this as feature in SfComboBox control. It will be available in our Volume 3 2020 release which is expected to be rolled out on September 2020. You can track the status of this feature from the below feedback link.

Feedback link:
 
https://www.syncfusion.com/feedback/13224/highlight-the-dropdown-when-the-text-matches-in-the-selection

We appreciate your patience until then.

Regards,
Sakthivel P.

 


Loader.
Live Chat Icon For mobile
Up arrow icon