- Home
- Forum
- Xamarin.Forms
- Issue when binding sfcombobox with xamarin form list view
Issue when binding sfcombobox with xamarin form list view
Hi,
This is requesting to you that i am having issue with sfcombobox when i am binding sfcombobox with xamarin forms listview control.
What i want?
when sfcombobox bind with listview control then it should in editable mode but it is not working even i mentioned its properties. I found one example on forum which link i posted below, even this link is also not working. This approach is working fine in my IOS app but having issue in Android app
Important thing: what i got in this issue while i am working on it, if i put one textbox in listview and when i click on that textbox then sfcombobox get ready in editable mode. I don't no why it is working like this.
Please look into this, why this issue is happening in android only. please revert with best solution
Below is the your xml with added entry box control
<ListView Margin="0,20,0,0" x:Name="listView" HasUnevenRows="True">
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Label Text="Combobox control" FontAttributes="Bold" Grid.Row="0" />
<combobox:SfComboBox HeightRequest="40" x:Name="comboBox" Grid.Row="1" BackgroundColor="{Binding BgColor}" IsEditableMode="True"
DataSource="{Binding EmployeeCollection}" ShowClearButton="True"
DisplayMemberPath="Name" SelectedItem="{Binding Selectedval}">
<combobox:SfComboBox.BindingContext>
<local:EmployeeViewModel />
</combobox:SfComboBox.BindingContext>
</combobox:SfComboBox>
<Entry Text="123" Grid.Row="2"/>
</Grid>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
Thanks in Advance
SIGN IN To post a reply.
1 Reply
SP
Sakthivel Palaniyappan
Syncfusion Team
May 28, 2020 10:44 AM UTC
Hi Attila,
Greetings from Syncfusion.
We are able to reproduce the issue in Android platform.We would like to inform that it is a Xamarin.Forms frame work level issue.We have already raised the ticket with Xamarin forums for the same issue.Please refer the below link for further updates.
Link: https://forums.xamarin.com/discussion/78915/components-inside-table-view-cell-is-not-working-properly
We suggest you to use SfListView to resolve the reported issue . Please find the sample from the below link
Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/Combo_Sample-13607788.zip
Please check with the sample and let us know if you have any concerns.
Regards,
Sakthivel P.
Greetings from Syncfusion.
We are able to reproduce the issue in Android platform.We would like to inform that it is a Xamarin.Forms frame work level issue.We have already raised the ticket with Xamarin forums for the same issue.Please refer the below link for further updates.
Link: https://forums.xamarin.com/discussion/78915/components-inside-table-view-cell-is-not-working-properly
We suggest you to use SfListView to resolve the reported issue . Please find the sample from the below link
Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/Combo_Sample-13607788.zip
Please check with the sample and let us know if you have any concerns.
Regards,
Sakthivel P.
SIGN IN To post a reply.
- 1 Reply
- 2 Participants
-
AK Attila Kiss
- May 27, 2020 05:49 AM UTC
- May 28, 2020 10:44 AM UTC