or
We are using the Telerik controls in developing our application. We were using Coded UI Test to test our application.
We have created a user control using the Telerik controls and we have hosted this user control in our application.If the user control is placed directly under RadPaneGroup, CUIT is not able to highlight them.
Following are our observations:
Any help here is greatly appreciated.
Thanks,
Vijay
BollingerBandsIndicator indicator =
new
BollingerBandsIndicator();
indicator.Period = 20;
indicator.StandardDeviations = 2;
indicator.Stroke = Brushes.Red;
indicator.LowerBandStroke = Brushes.Red;
indicator.StrokeThickness = 1;
private void recalculateFirstAndLastVisibleIndexes()
{
var gvvp = this.radGridView.ChildrenOfType<
GridViewVirtualizingPanel
>().FirstOrDefault();
if (gvvp == null)
return;
var rowsList = gvvp.ChildrenOfType<
GridViewRow
>();
if (rowsList.Any())
{
int firstIndex = this.radGridView.Items.IndexOf(rowsList.ElementAt(0).Item);
foreach (var row in rowsList)
{
firstIndex = Math.Min(firstIndex, this.radGridView.Items.IndexOf(row.Item));
}
FirstVisibleRowIndex = firstIndex;
NumOfVisibleRows = rowsList.Count();
}
else
{
FirstVisibleRowIndex = 0;
NumOfVisibleRows = 0;
}
}
recalculateFirstAndLastVisibleIndexes
function.