RadGridViewRadioButtonColumn

2 posts, 0 answers
  1. Parag
    Parag avatar
    1 posts
    Member since:
    Oct 2012

    Posted 29 Jul 2017 Link to this post

    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.

     

  2. Dimitar
    Admin
    Dimitar avatar
    2831 posts

    Posted 31 Jul 2017 Link to this post

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