Declined
Last Updated: 11 Jul 2018 14:12 by ADMIN
ADMIN
Lance | Senior Manager Technical Support
Created on: 06 Jul 2018 20:04
Category: DataGrid
Type: Bug Report
0
DataGrid: [Android] Selection doesn't occur with a DataGridTemplateCell
When using a TemplateCell, selection does not fire on Android. 

Reproducible (use SelectionChanged and SelectionUnit="Row"):

<telerikGrid:RadDataGrid.Columns>
    <telerikGrid:DataGridTemplateColumn HeaderText="Key">
        <telerikGrid:DataGridTemplateColumn.CellContentTemplate>
            <DataTemplate>
                <Grid Padding="0,5">
                    <Label Text="{Binding Key}"
                           VerticalOptions="Center"
                           TextColor="Black" />
                </Grid>
            </DataTemplate>
        </telerikGrid:DataGridTemplateColumn.CellContentTemplate>
    </telerikGrid:DataGridTemplateColumn>
</telerikGrid:RadDataGrid.Columns>


WORKAROUND

Set the DataTemplate content's InputTransparent="True" so that input event is passed through the template to the DataGrid:

<DataTemplate>
    <Grid InputTransparent="True">
        ...
    </Grid>
</DataTemplate>
1 comment
ADMIN
Yana
Posted on: 11 Jul 2018 14:11
Actually, this is not a bug, but more of a behavior related to the Android platform - in short, the visual element placed inside the cell that is hit when the user makes a selection steals the focus and the event is not propagated to the row.  This is resolved, as already suggested by enabling InputTransparent property of an element inside the template.

I've updated the status of the item to "Declined".  If you have any concerns regarding this, let me know.

Regards,
Yana