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

expand on cellclick

2 Answers 52 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Andre
Top achievements
Rank 1
Andre asked on 16 Mar 2018, 01:25 PM
how can i expand the associated templategrid (from a radgridview hierarchy) by cellclick ?
thanks 
andré

2 Answers, 1 is accepted

Sort by
0
Accepted
Dess | Tech Support Engineer, Principal
Telerik team
answered on 19 Mar 2018, 09:58 AM
Hello, André,  

Note that GridViewRowInfo offers IsExpanded property which controls whether the row is expanded or not. Here is a sample code snippet demonstrating how to expand/collapse the row by handling the CellClick event:
 
private void radGridView1_CellClick(object sender, Telerik.WinControls.UI.GridViewCellEventArgs e)
{
    e.Row.IsExpanded =! e.Row.IsExpanded;
}

I hope this information helps. If you have any additional questions, please let me know. 

Regards,
Dess
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Andre
Top achievements
Rank 1
answered on 20 Mar 2018, 02:37 PM

works perfectly !!

thank you very much

andré

Tags
GridView
Asked by
Andre
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Andre
Top achievements
Rank 1
Share this question
or