WPF RadGridView GridViewDataColumn Checkbox disapearing

1 Answer 3 Views
GridView
Pascal
Top achievements
Rank 2
Iron
Pascal asked on 17 Sep 2025, 08:19 AM | edited on 17 Sep 2025, 08:19 AM

I have a question about my RadGridView. It contains checkboxes, and I noticed that if I don’t click directly on the checkbox but instead on the element surrounding it, the checkbox disappears and only becomes visible again once I click on another element.

RadGriddView

  AutoGenerateColumns="False"
  CanUserDeleteRows="False"
  CanUserFreezeColumns="False"
  CanUserReorderColumns="False"
  CanUserResizeColumns="False"
  CanUserSearch="False"
  CanUserSortColumns="False"
  GridLinesVisibility="Both"
  GroupRenderMode="Flat"
  ItemsSource="{Binding Items}"
  RowIndicatorVisibility="Collapsed"
  ShowGroupPanel="False"


<t:GridViewDataColumn
    Width="*"
    MinWidth="70"
    Header="Test"
    HeaderTextAlignment="Center">
    <t:GridViewColumn.CellTemplate>
        <DataTemplate>
            <CheckBox
                HorizontalAlignment="Center"
                FontSize="16"
                IsChecked="{Binding Test1}"
                IsHitTestVisible="True"
                Tag="{Binding}" />
        </DataTemplate>
    </t:GridViewColumn.CellTemplate>
</t:GridViewDataColumn>

 

 

When I use this t:GridViewCheckBoxColumn, the behavior is not as described above. However, I have to click three times on the checkbox, once before I can set the checkmark in the checkbox.

<t:GridViewCheckBoxColumn
    MinWidth="50"
    DataMemberBinding="{Binding Test1}"
    Header="Test1" />


 

1 Answer, 1 is accepted

Sort by
0
Stenly
Telerik team
answered on 17 Sep 2025, 08:24 AM

Hello Pascal,

The observed behavior is expected because when a cell is clicked, it goes into edit mode, and the DataTemplate that is assigned to the CellEditTemplate property of, in this case, the GridViewDataColumn is displayed. Since the CellEditTemplate is not utilized on your end, the default one will be used.

With this in mind, what I could suggest would be to set the IsReadOnly property of the GridViewDataColumn to True, which will prevent the cells in this column from going into edit mode.

An alternative approach would be to use the GridViewCheckBoxColumn column and follow the approach showcased in the following article to click only once to check the checkbox:

WPF DataGrid - Clicks in the CheckBox Column - Telerik UI for WPF

With this being said, I hope the provided information will be of help to you.

Regards,
Stenly
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
GridView
Asked by
Pascal
Top achievements
Rank 2
Iron
Answers by
Stenly
Telerik team
Share this question
or