RadTreeNode node = new RadTreeNode();
rdTvSearch.Nodes.Clear();
string url = string.Empty;
foreach (DataRow row in MyDataTable.Rows)
{// and this check if send a PID , or a parent id to make fileration.
// if (row["ParentID"] == DBNull.Value || parentid != null) //That the regular case when loading the tree with the Level one parent , that dunt has any parent.
//{
if (row["IsChild"].ToString() == "True")
{ node.Image = TechTouch_Point.Properties.Resources.file2; }
else
{ node.Image = TechTouch_Point.Properties.Resources.folder1 ; }
node = new RadTreeNode(row["NameArabic"].ToString() + ' ' + "_" + ' ' + row["Number"].ToString(), row["ID"].ToString());
node.Attributes.Add("number", row["Number"].ToString());
// node.ExpandMode = TreeNodeExpandMode.ServerSideCallBack;
node.Expanded = true;
node.Attributes.Add("name", row["NameArabic"].ToString());
node.Attributes.Add("child", row["IsChild"].ToString());
node.Attributes.Add("treenameid", treenameId.ToString());
rdTvSearch.Nodes.Add(node);
rdTvSearch.Nodes.Clear();
string url = string.Empty;
foreach (DataRow row in MyDataTable.Rows)
{// and this check if send a PID , or a parent id to make fileration.
// if (row["ParentID"] == DBNull.Value || parentid != null) //That the regular case when loading the tree with the Level one parent , that dunt has any parent.
//{
if (row["IsChild"].ToString() == "True")
{ node.Image = TechTouch_Point.Properties.Resources.file2; }
else
{ node.Image = TechTouch_Point.Properties.Resources.folder1 ; }
node = new RadTreeNode(row["NameArabic"].ToString() + ' ' + "_" + ' ' + row["Number"].ToString(), row["ID"].ToString());
node.Attributes.Add("number", row["Number"].ToString());
// node.ExpandMode = TreeNodeExpandMode.ServerSideCallBack;
node.Expanded = true;
node.Attributes.Add("name", row["NameArabic"].ToString());
node.Attributes.Add("child", row["IsChild"].ToString());
node.Attributes.Add("treenameid", treenameId.ToString());
rdTvSearch.Nodes.Add(node);