here's the method that loads the Nodes On Demand on WebDataTree.
If the parent Node is Partial Selected and when that node is expanded using this procedure all the child nodes are Partial Selected even though I am assigning proper value to CheckStatefor that DataTreeNode. It seems that setting the CheckState does not take effect if Parent is partial Selected
protected void LoadNode(DataTreeNode dtn) { if (this.Dimension == null) return; XmlDocument xDimensionData = this.Dimension.GetDimensionXml(this.SelectionInfo); if (dtn == null) { this.wdtSelect.Nodes.Clear(); } XmlNodeList xnl = xDimensionData.SelectNodes(this.GetXPathForLevel(dtn == null ? 0 : int.Parse(dtn.Value) + 1)); foreach (XmlNode xn in xnl) { DataTreeNode n = new DataTreeNode(); n.Text = xn.Attributes["Text"].Value; n.Key = xn.Attributes["Key"].Value; n.Value = xn.Attributes["Level"].Value; n.CheckState = this.ConvertToCheckBoxState(xn.Attributes["Selected"].Value); n.IsEmptyParent = xn.HasChildNodes; if (dtn == null) this.wdtSelect.Nodes.Add(n); else dtn.Nodes.Add(n); } }
Hello Dharmesh,Please provide some basic info like with what version of NA and build is the issue reproducable. Does it appear in all the browsers or in any specific?
Version: 10.3.20103.2088
I have only tested in IE 7. For our application we need to only support IE 7.
I have already implemented a work around. Maybe this might be useful in debugging the problem.
EnableAutoChecking will work. But then you when the parent is checked the Children will not be checked automatically for the nodes that are already expanded. We need to have that feature. So here's the workaround that I have implemented and it works.
Set EnableAutoChecking to false.
this
.wdtSelect.EnableAutoChecking = false
Then bind the tree nodes. Now right before the Control is rendered we need to reenable EnableAutoChecking.
public
override void RenderControl(HtmlTextWriter writer)
{
this.wdtSelect.EnableAutoChecking = true;
base.RenderControl(writer);
}
Hello Dharmesh,Please let me know what is the result if you set EnableAutoChecking="false".
Hello Dharmesh,I was able to reproduce the misbehavior. I have created a support ticket with number CAS-81274-B6QG1Z regarding this forum thread. I am starting procedure of logging a development issue. I will update you through the support ticket.