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

Feature Request: Autobind to Tag

6 Answers 62 Views
Treeview
This is a migrated thread and some comments may be shown as answers.
Brad
Top achievements
Rank 1
Brad asked on 16 Jul 2008, 12:11 AM
Hi,

In you documentation you suggest binding the object being described by the node to the Tag property.  I wonder if this could be taken one step further for those of us who are using data binding and automatically bind objects contained in an Array or List to the Tag?  This feature would of course have to be able to be turned on and off.  If you didn’t want to auto link it to the Tag creating a new property would also be cool.

Cheers,
Brad

6 Answers, 1 is accepted

Sort by
0
Jordan
Telerik team
answered on 18 Jul 2008, 10:22 AM
Hi Brad,

Thank you for writing.
Currently, when RadTreeView is bound, the values of the data source field set as ValueMember are stored in the Tag property of the tree nodes. We are considering adding a feature that will allow storing not only ValueMember and DisplayMember in nodes but also other fields form the data source. Do you think that such functionality will be helpful? Or do you have any other suggestions?

I am not sure that I fully understand what you mean by "automatically bind objects contained in an Array or List to the Tag". Could you give an example to clarify?

Sincerely yours,
Jordan
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Brad
Top achievements
Rank 1
answered on 19 Jul 2008, 07:00 AM
Hi Jordan,

That’s fairly easy to explain. I often create a List or Array of Objects.

For example I may have an object “Pipe” which contains many parameters and functions. Suppose several of those pipes are connected and want to display them individually in your tree view. I could create a List of Pipes and then bind it to your tree view so they can be selected individually.

What I would like to be able to do is reference the original object that it was bound to through the Tree Nodes; for example “(Pipe)MyTreeNode.Tag” would link back directly to the Pipe in my List.

Does this make things clearer?

Thanks,
Brad
0
Jordan
Telerik team
answered on 21 Jul 2008, 12:41 PM
Hello Brad,

Thank you for the example. Now I see your point.
Indeed, that is a nice feature. I cannot add it to the list for the Q2 2008 release as it is feature frozen now.
I will however add it to the list for the Q2 2008 SP1 release with high priority.

Greetings,
Jordan
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Stargazer
Top achievements
Rank 2
answered on 20 Nov 2008, 12:00 PM
Hello!

Jordan, or anyone who may be able to respond, is this feature implemented ? If so, how to turn it on or how to use it. I have a scenario here that can benefit a lot with it.

Thanks!
0
Jordan
Telerik team
answered on 21 Nov 2008, 04:30 PM
Hello Stargazer,

We did consider that feature, but unfortunately it was dropped due to other tasks with higher priority. However I am working on it at the moment and it will be available in the upcoming Q3 2008 SP1 release (due at the beginning of December).


Sincerely yours,
Jordan
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Stargazer
Top achievements
Rank 2
answered on 21 Nov 2008, 04:39 PM
Hello Jordan!

Always too late... hehehe

More seriously, cool news. Even though I implemented my own solution for it, there is always time and place for improvements. ;) I'll be waiting for Q3 SP1 then. ;)
Tags
Treeview
Asked by
Brad
Top achievements
Rank 1
Answers by
Jordan
Telerik team
Brad
Top achievements
Rank 1
Stargazer
Top achievements
Rank 2
Share this question
or