hi,
i have a treeview in combobox.i cant mark as selected treeview default value.i have a value for pdeps.DEPID.ToString(); and tv binding correctly but it gives null exception?Any opinion?
RadTreeView tv = (RadTreeView)cbxDepartments.Items[0].FindControl("tvDepartments");
tv.DataSource = d.GetAllDepartmentsByBranch(branchid);
tv.DataBind();
tv.SelectedNode.Value = pdeps.DEPID.ToString();
i have a treeview in combobox.i cant mark as selected treeview default value.i have a value for pdeps.DEPID.ToString(); and tv binding correctly but it gives null exception?Any opinion?
RadTreeView tv = (RadTreeView)cbxDepartments.Items[0].FindControl("tvDepartments");
tv.DataSource = d.GetAllDepartmentsByBranch(branchid);
tv.DataBind();
tv.SelectedNode.Value = pdeps.DEPID.ToString();