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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

[GridComboBoxColumn] Always show the Arrow

Thread ID:

Created:

Updated:

Platform:

Replies:

151375 Feb 9,2020 03:27 PM UTC Feb 11,2020 09:20 AM UTC Xamarin.Forms 3
loading
Tags: SfDataGrid
Yin Shun
Asked On February 9, 2020 05:05 PM UTC

Hi,

  Is it possible to show the dropdown arrow in the cell all the time?

Attachment: Arrow_GridComboBoxColumn_ac25fe20.rar

Best regards,
Jason

Muthu Kumaran Gnanavinayagam [Syncfusion]
Replied On February 10, 2020 08:59 AM UTC

Hi Yin, 
 
Thank you for contacting Syncfusion support. 
 
We have checked the reported query “Need to show SfComboBox arrow inside the Grid row template” from our side. We would like to let you know that the SfComboBox element will be loaded in the GridCell only when the SfDataGrid is in EditMode. So when tapping the next cell, the previous loaded SfComboBox element will be unloaded and loads the label element thereby ending the EditMode. So your requirement cannot be achieved using GridComboBoxColumn. 
 
However you can achieve your requirement by loading the SfComboBox control inside the CellTemplate of GridTemplateColumn in SfDataGrid as like below. 
 
Code example: 
<sfgrid:SfDataGrid AllowEditing="True" NavigationMode="Cell" 
            AutoGenerateColumns="False" 
            ItemsSource="{Binding OrdersInfo}"> 
         
        <sfgrid:SfDataGrid.Columns> 
            <sfgrid:GridTemplateColumn HeaderText="Ship Country" 
                                       MappingName="ShipCountry" 
                <sfgrid:GridTemplateColumn.CellTemplate> 
                    <DataTemplate> 
                        <combobox:SfComboBox SelectedItem="{Binding ShipCountry}" DataSource="{Binding CustomerNames, Source={x:Reference viewModel}}"/> 
                    </DataTemplate> 
                </sfgrid:GridTemplateColumn.CellTemplate> 
            </sfgrid:GridTemplateColumn> 
        </sfgrid:SfDataGrid.Columns> 
    </sfgrid:SfDataGrid> 
 
 
For your reference, we have attached the working sample below and you can download it from the below link. 
 
 
Please let us know if you require further assistance. 
 
Regards, 
G.Muthu kumaran. 


Yin Shun
Replied On February 10, 2020 07:47 PM UTC

Thanks G.Muthu kumaran,

  That's really a great demo for me=)!
  I've learn a lot from this. Thanks again!

Best regards,
Jason

Farjana Parveen Ayubb [Syncfusion]
Replied On February 11, 2020 09:20 AM UTC

Hi Yin, 
 
Thanks for the update. 
 
We are glad to know that the reported problem has been resolved at your end. Please let us know if you have any further queries on this. We are happy to help you. 
 
Regards, 
Farjana Parveen A 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon