I have a datagrid in which I fill it from a web services, I'm using a CellContentTemplate to integrate a checkbox, only when I try to assign the check it does not make the change.
<telerikGrid:RadDataGrid x:Name="RDG_Detalle"
AutoGenerateColumns="False"
SelectionMode="None"
UserEditMode="Cell"
ItemsSource="{Binding}"
HorizontalOptions="FillAndExpand"
VerticalOptions="FillAndExpand"
UserFilterMode="Disabled"
SelectionChanged="RDG_Detalle_SelectionChanged"
UserGroupMode="Disabled">
<telerikGrid:RadDataGrid.AlternateRowBackgroundStyle>
<telerikGrid:DataGridBorderStyle BackgroundColor="#D9D9D9"/>
</telerikGrid:RadDataGrid.AlternateRowBackgroundStyle>
<telerikGrid:RadDataGrid.Columns >
<telerikGrid:DataGridTemplateColumn HeaderText="Template Column" x:Name="pr">
<telerikGrid:DataGridTemplateColumn.CellContentTemplate>
<DataTemplate>
<!-- Your content -->
<telerikPrimitives:RadCheckBox x:Name="checkbox" IsChecked="{Binding Escaneado}">
</telerikPrimitives:RadCheckBox>
</DataTemplate>
</telerikGrid:DataGridTemplateColumn.CellContentTemplate>
</telerikGrid:DataGridTemplateColumn>
<telerikGrid:DataGridNumericalColumn PropertyName="Cantidad"
HeaderText="Cantidad"
CellContentFormat="{}{0:N2}"
CanUserEdit="True"
SizeMode="Fixed"/>
<telerikGrid:DataGridTextColumn PropertyName="ProductoDescripcion"
HeaderText="Descripcion"
CanUserEdit="False"
SizeMode="Stretch"/>
<telerikGrid:DataGridTextColumn PropertyName="AlmacenDescripcion"
HeaderText="Almacen"
CanUserEdit="False"
SizeMode="Stretch"/>
<telerikGrid:DataGridTextColumn PropertyName="UbicacionDescripcion"
HeaderText="Ubicacion"
CanUserEdit="False"
SizeMode="Stretch"/>
<telerikGrid:DataGridNumericalColumn PropertyName="Precio"
HeaderText="Precio"
CellContentFormat="{}{0:C2}"
CanUserEdit="True"
SizeMode="Fixed"/>
<telerikGrid:DataGridNumericalColumn PropertyName="Importe"
HeaderText="Importe"
CellContentFormat="{}{0:C2}"
CanUserEdit="True"
SizeMode="Fixed"/>
<telerikGrid:DataGridNumericalColumn PropertyName="Total"
HeaderText="Total"
CellContentFormat="{}{0:C2}"
CanUserEdit="True"
SizeMode="Fixed"/>
<telerikGrid:DataGridBooleanColumn PropertyName="IsEscaneado"
HeaderText="IsEscaneado"/>
</telerikGrid:RadDataGrid.Columns>
</telerikGrid:RadDataGrid>
public bool IsEscaneado
{
get => Escaneado;
set { Escaneado = value; OnPropertyChanged(); }
}
public event PropertyChangedEventHandler PropertyChanged;
public ICommand IsCheckedChangedCommand { get; set; }
protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
{
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}