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

Telerik Gridview header checkbox cell radiobutton

1 Answer 237 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Rajesh
Top achievements
Rank 1
Rajesh asked on 20 May 2013, 06:25 AM
Hi, I have a project requirement where header of telerik gridview will be a checkbox and columns below this header should be radiobutton.
I need urgent help to resolve this issue. I had attached pic where i last three colum that is Merge,Overwrite and Ignore should have checkbox colum and data under these column should be radio button. Grouping of these radio button will be per row. User can select multiple rows and pressing checkbox will check/uncheck those rows radiobuttons. My real problem is column header checkbox and datacolumn as radio box. 

1 Answer, 1 is accepted

Sort by
0
Paul
Telerik team
answered on 23 May 2013, 10:51 AM
Hello Rajesh,

Thank you for writing.

What you require generally is not a trivial task, however, thanks to the Telerik Presentation Framework it can be achieved. First, you will have to inherit the GridViewDataColumn class and override the GetCellType method to have it return the elements you need. After that you will have to inherit the GridHeaderCellElement class and implement the logic for creating check box inside. You will also have to inherit the GridDataCellElement and implement the logic for creating the radio button inside. After that you can implement the logic for your project.

I have attached a sample project showing how to do all of the above plus some additional features like checking the selected radio buttons and implementing row grouping. From there on it is up to you how to use it in your project.

I hope you will find the information useful.

Regards,
Paul
Telerik
RadChart for WinForms is obsolete. Now what?
Tags
GridView
Asked by
Rajesh
Top achievements
Rank 1
Answers by
Paul
Telerik team
Share this question
or