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; |
| } |
| private void showAppointment(DateTime dt1) |
| { |
| rsAppointments.ActiveView.StartDate = Convert.ToDateTime(dt1.ToShortDateString()); |
| ((SchedulerDayView)rsAppointments.ActiveView).RulerStartScale = dt1.Hour - 1; |
| ((SchedulerDayView)rsAppointments.ActiveView).RulerEndScale = dt1.AddMinutes(Convert.ToDouble(appointDuration)).Hour + 1; |
| } |
Hi,
I have a grid which I populate using the below method
this.gvSheet.MasterGridViewTemplate.LoadFrom(q.ExecuteReader());
for (int i = 0; i < gvSheet.MasterGridViewTemplate.Columns.Count; i++)
{
this.gvSheet.MasterGridViewTemplate.Columns[i].Width = 150;
this.gvSheet.MasterGridViewTemplate.Columns[i].WrapText = false;
}
I then add three checkbox columns using the below
GridViewCheckBoxColumn cb1 = new GridViewCheckBoxColumn();
cb1.UniqueName = "ucb1";
cb1.HeaderText = “cb1";
cb1.Width = 150;
cb1.WrapText = false;
cb1.ReadOnly = false;
this
.gvSheet.Columns.Add(cb1);
this.gvSheet.Columns.Add(cb2);
this.gvSheet.Columns.Add(cb3);
I’m trying to get the values of these three GridViewCheckBoxColumn on the gvSheet_ValueChanged(
I’ve tried
gvSheet.CurrentRow.Cells["ucb1"].Value.ToString() and gvSheet.CurrentRow.Cells["cb1"].Value.ToString() and I get nothing back.
What I’m trying to achieve is if I select cb1 and cb2 column I should get true, true, false returned. I have some business logic which works off the values of these three check boxes.
Any help or pointers would be great.
Thanks