or
textBox.BeginUpdate(); |
textBox.Text = "Leave no tracks behind"; |
textBox.EndUpdate(); |
Good morning.
Regarding this problem, I tried to use your new RadControls for WinForms Q1 2010. If you try with the same test project as above, you will notice that the vertical scrollbar doesn’t appear, as before. The only improvement is that now, when you click on a groupitem, the vertical scrollbar appears and doesn’t disappear anymore, but when you programmatically add groupitems to the radPanelBar, again no vertical scrollbar is displayed. Any suggestion? Thank you very much.
private void Filter() |
{ |
try |
{ |
LoadAllNodes(); |
if (accountTextBox.Text.TrimEnd().Equals("*") || string.IsNullOrEmpty(accountTextBox.Text.TrimEnd())) |
return; |
//Get all nodes matching the filter |
List<RadTreeNode> matchingNodes = new List<RadTreeNode>(); |
IList<RadTreeNode> nodesToFilter = ((List<RadTreeNode>)radTreeView.GetAllNodes()).FindAll(delegate(RadTreeNode rdTNode) { return rdTNode.Tag.Equals("Account"); }); |
for (int i = 0; i < nodesToFilter.Count; i++) |
{ |
if (nodesToFilter[i].Text.StartsWith(accountTextBox.Text.TrimEnd(), StringComparison.OrdinalIgnoreCase)) |
matchingNodes.Add(nodesToFilter[i]); |
} |
IList<RadTreeNode> allNodes = radTreeView.GetAllNodes(); |
for (int i = 0; i < allNodes.Count; i++) |
{ |
if (IsToFilter(allNodes[i], matchingNodes)) |
allNodes[i].Remove(); |
} |
} |
catch (Exception ex) |
{ |
throw ex; |
} |
} |
private bool IsToFilter(RadTreeNode radTreeNode, List<RadTreeNode> matchingNodes) |
{ |
if (radTreeNode.Text.StartsWith(accountTextBox.Text.TrimEnd(), StringComparison.OrdinalIgnoreCase)) |
return false; |
foreach (RadTreeNode item in matchingNodes) |
{ |
if (radTreeNode.IsAncestorOf(item)) |
return false; |
} |
return true; |
} |