Hello, i am trying to perform drag and drop from tree view into a textbox control. However, i m having some issues. My treeview is databound to a sqldatasource if that makes a difference. can someone please take a look at my code...thanks
protected void RadTreeView1_NodeDrop(object sender, Telerik.Web.UI.RadTreeNodeDragDropEventArgs e)
{
if (TextBox1.ClientID == e.HtmlElementID)
{
TextBox1.Text = String.Empty;
foreach (RadTreeNode node in e.DraggedNodes)
{
{
//problem area!
TextBox1.Text = sender.ToString();
}
if (TextBox1.Text.Length > 0)
TextBox1.Text = TextBox1.Text.TrimEnd(new char[] { ',', ' ', '\n' });
}
}