Select datagrid row with checkbox column

1 Answer 88 Views
CheckBox DataGrid
Andres
Top achievements
Rank 1
Iron
Andres asked on 06 Aug 2024, 12:29 PM

I implemented single tap for editing cells in Datagrid, based on this question, which renders tapping to select a row in the datagrid unusable. I was thinking on using a boolean column with a checkbox to select the rows and be able to delete them with a button click. 

Is this possible? In the sample code provided with Telerik, I see that if you use a boolean column it changes the box to a string that says "True" or "False". I do not want that, so is there any way the box can be kept?

 

Thanks

1 Answer, 1 is accepted

Sort by
1
Accepted
Didi
Telerik team
answered on 07 Aug 2024, 07:33 AM

Hi Andres,

Keep in mind that when entering edit mode in a single tap, this changes the default commands behavior. So it is up to you how to continue working with the commands.

If you want to add a checkbox/button to DataGrid column for selecting a row, then you can use the default Boolean column and add a cell content template with input transparency. Here is the article: https://docs.telerik.com/devtools/maui/controls/datagrid/columns/cell-templates 

I see you still use the forum instead of submitting support tickets. Do you have any issues with the Telerik account?

Regards,
Didi
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
CheckBox DataGrid
Asked by
Andres
Top achievements
Rank 1
Iron
Answers by
Didi
Telerik team
Share this question
or