Feature Request: Autobind to Tag

7 posts, 0 answers
  1. Brad
    Brad avatar
    110 posts
    Member since:
    Jun 2004

    Posted 15 Jul 2008 Link to this post

    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
  2. Jordan
    Admin
    Jordan avatar
    547 posts

    Posted 18 Jul 2008 Link to this post

    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
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Brad
    Brad avatar
    110 posts
    Member since:
    Jun 2004

    Posted 19 Jul 2008 Link to this post

    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
  5. Jordan
    Admin
    Jordan avatar
    547 posts

    Posted 21 Jul 2008 Link to this post

    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
  6. Stargazer
    Stargazer avatar
    73 posts
    Member since:
    Jan 2007

    Posted 20 Nov 2008 Link to this post

    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!
  7. Jordan
    Admin
    Jordan avatar
    547 posts

    Posted 21 Nov 2008 Link to this post

    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.
  8. Stargazer
    Stargazer avatar
    73 posts
    Member since:
    Jan 2007

    Posted 21 Nov 2008 Link to this post

    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. ;)
Back to Top
UI for WinForms is Visual Studio 2017 Ready