This is a migrated thread and some comments may be shown as answers.

Vertically Merged Cells in a CheckBox Column

2 Answers 101 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Miles
Top achievements
Rank 1
Miles asked on 03 Jul 2019, 01:15 PM

Hi,

I have a project in which I am trying to support merged cells for all columns. I notice however that a CheckBox Column doesn't fully support this feature inasmuch as a GridView always displays the values True or False in text form across merged cells (or in my case "1" or "0").

I thought this was an oversight by me but I noticed it in the documentation here where the IsMarried column is shown.

 

Is this the intended design or does Telerik plan to change this? Personally I would prefer the merged cell also to display a CheckBox.

 

Many thanks.

Miles Young

 

 

2 Answers, 1 is accepted

Sort by
0
Accepted
Vladimir Stoyanov
Telerik team
answered on 04 Jul 2019, 01:37 PM
Hello Miles,

Thank you for the referenced article. 

Indeed the observed behavior of merged cells in a checkbox column is the intended one. Currently we do not have plans of changing it. 

That said, you can achieve the desired result with the help of a MergedCellsStyleSelector. You can create a custom style for the GridViewMergedCells with a CheckBox in its ContentTemplate and apply it to merged cells with a boolean value. I am attaching a sample project demonstrating this approach for your reference.

I hope you find this helpful. 

Regards,
Vladimir Stoyanov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Miles
Top achievements
Rank 1
answered on 17 Jul 2019, 09:32 AM

Hi Vladimir,

Many thanks for your quick reply and your suggestion. I will use your sample project to amend mine here accordingly!

Miles

Tags
GridView
Asked by
Miles
Top achievements
Rank 1
Answers by
Vladimir Stoyanov
Telerik team
Miles
Top achievements
Rank 1
Share this question
or