Telerik Gridview header checkbox cell radiobutton

2 posts, 0 answers
  1. Rajesh
    Rajesh avatar
    1 posts
    Member since:
    May 2013

    Posted 20 May 2013 Link to this post

    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. 
  2. Paul
    Admin
    Paul avatar
    60 posts

    Posted 23 May 2013 Link to this post

    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?
Back to Top