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

RadGridview Relation expanded

0 Answers 131 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Bao
Top achievements
Rank 1
Bao asked on 21 May 2019, 11:30 AM

 Hi ,

I am using the relational gridview. when i click the button , i want the node will be expanded by condition . Follow the link : https://docs.telerik.com/devtools/winforms/controls/gridview/hierarchical-grid/how-to/expanding-all-rows . is it the best way to do it ? because i see it is really slow when expanding.

 

void ExpandAllRows(GridViewTemplate template, bool expanded) {
 foreach(GridViewRowInfo row in template.Rows) {

  if(row.Tag == conditionID){
  row.IsExpanded = expanded;

 }
 }
 if (template.Templates.Count > 0) {
  foreach(GridViewTemplate childTemplate in template.Templates) {
   ExpandAllRows(childTemplate, true);
  }
 }
}

No answers yet. Maybe you can help?

Tags
GridView
Asked by
Bao
Top achievements
Rank 1
Share this question
or