Hi Telerik Team,
I have a code that looks like this:
The line for finding childgrid in the current row is currently throwing a timout exception. I also tried accessing the ChildGridView attribute of the GridViewRow but I had the same error. Can you please help me pinpoint what's wrong with the above code?
Regards,
Kristine
I have a code that looks like this:
public bool Get_GridRows(Telerik.WebAii.Controls.Xaml.RadGridView RadGrid, StringCollection TaskCodeAry)
{
bool newrow = false;
RadGrid.Refresh();
IList<
Telerik.WebAii.Controls.Xaml.GridViewRow
> Rows = RadGrid.Find.AllByType<
Telerik.WebAii.Controls.Xaml.GridViewRow
>();
foreach(Telerik.WebAii.Controls.Xaml.GridViewRow row in Rows)
{
TaskGridRow CurrentRow = new TaskGridRow();
CurrentRow.TaskCode = row.Cells[CodeColumn].Text;
CurrentRow.Summary = row.Cells[TitleColumn].Text;
Logger.log_success(TestId, string.Format("Reference Code {0}: {1}", CurrentRow.TaskCode, CurrentRow.Summary));
if(!TaskCodeAry.Contains(CurrentRow.TaskCode))
{
TaskCodeAry.Add(CurrentRow.TaskCode);
Grid.Rows.Add(CurrentRow);
newrow = true;
Telerik.WebAii.Controls.Xaml.RadGridView childgrid = row.Find.ByType<
Telerik.WebAii.Controls.Xaml.RadGridView
>();
if(childgrid != null)
{
foreach(Telerik.WebAii.Controls.Xaml.GridViewRow childrow in childgrid.Rows)
{
TaskGridRow child = new TaskGridRow();
child.TaskCode = childrow.Cells[CodeColumn-1].Text;
child.Summary = childrow.Cells[TitleColumn-1].Text;
child.IsChild = true;
child.ParentCode = CurrentRow.TaskCode;
Grid.Rows.Add(child);
}
}
}
}
return newrow;
}
The line for finding childgrid in the current row is currently throwing a timout exception. I also tried accessing the ChildGridView attribute of the GridViewRow but I had the same error. Can you please help me pinpoint what's wrong with the above code?
Regards,
Kristine