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

RadGridViewRadioButtonColumn

1 Answer 48 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Parag
Top achievements
Rank 2
Parag asked on 29 Jul 2017, 10:04 AM

Hi,

I am using RadRadioButtonColumn as describe in http://www.telerik.com/support/kb/winforms/details/creating-a-radradiobuttoncellelement

but while adding new row in grid ,radio button is not  render and also focus is not comming on that cell/column.

radio button only visible after rowleave event.

 

Please guide further to resolve this.

 

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 31 Jul 2017, 12:34 PM
Hi Parag,

You need to add the following statement to the GetCellType method:
public override Type GetCellType(GridViewRowInfo row)
{
    if (row is GridViewDataRowInfo)
    {
        return typeof(RadioButtonCellElement);
    }
    if (row is GridViewNewRowInfo)
    {
        return typeof(RadioButtonCellElement);
    }
    return base.GetCellType(row);
}

I hope this will be useful. Let me know if you have additional questions.

Regards,
Dimitar
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
GridView
Asked by
Parag
Top achievements
Rank 2
Answers by
Dimitar
Telerik team
Share this question
or