Hi Kathy,
Thank you for your interest in Syncfusion Products.
1)
Since I cannot databind on the Listitem in order to set the selected item, I am wondering how I can do this?If your intention is to set the selected item with dynamic data binding on the asp.net page, then it can be achieved by following the techniques discussed in the below forum:
http://forums.asp.net/p/1156810/1901549.aspxIf I have misunderstood your requirement, could you please explain me in detail, so that I can work in depth and try to send a better solution?
2)
if there is a way to access this dropdownlist in the server codeYes. You can access the dropdownlist in the server code. But for this you must add the control in the TemplateControl collection on the server side.
[C#]
//Create new instance of TreeView Template Control
TreeViewTemplateControl CalendarControl = new TreeViewTemplateControl();
CalendarControl.ID = "calendarControl"
//Add Calendar control in the TemplateControl collection
CalendarControl.Controls.Add(Calendar1);
//Add TemplateControl in the Templates collection
TreeView1.Templates.Add(CalendarControl);
//Assign Template ID to TreeView Node
Calendar.TemplateID = "calendarControl";
//Access the dropdownlist
this.Calendar1.BackColor = System.Drawing.Color.Lavender;
Please refer the sample in the below link which illustrates the above:
http://www.syncfusion.com/Support/user/uploads/TreeViewWithTemplat_28ea0b58.zipPlease try this and let me know if this helps.
Thanks,
Melba