This is a migrated thread and some comments may be shown as answers.

Treeview TextBox text not selectable!!

1 Answer 89 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Scott Bedard
Top achievements
Rank 1
Scott Bedard asked on 17 Dec 2008, 08:14 PM
I have a tree view and I dynamically add textboxes to some nodes. See the code below. I have upgraded to the latest Q3 release thinking that might fix it, no dice.

The tree and textboxes render fine. The problem is a user cannot use the mouse or any other method of selecting all the text in the text box. It appears the tree intercepts the events the textbox is firing, I'm not sure.

How do I allow a user to select text in the text box?

public void InstantiateIn(Control container) {

var 

 

factTextBoxControl = new TextBox {

 

ID = container.UniqueID +

"RadTextBox",

 

 

SkinID =

"treeTextBox",

 

 

Width =

Unit.Pixel(FactGridTemplateBuilder.Width),

 

 

Text = node.Value,
EnableViewState =

false

 

 

 

};

 

 

 

 

factTextBoxControl.Text = Context.FactValue.Value;

node.Controls.Add(factTextBoxControl);

}

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 19 Dec 2008, 02:20 PM
Hi Scott,

I wasn't able to reproduce the described issue with the provided code, please find attached my test page, download it and examine it. What is different in your case?

All the best,
Yana
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
TreeView
Asked by
Scott Bedard
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or