This is a migrated thread and some comments may be shown as answers.
Is there similar thing like Grid's DataKeys in the TreeView
2 Answers 17 Views
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Tx3
Top achievements
Rank 1
Tx3 asked on 18 Nov 2010, 05:25 PM

Hi,

I am looking way to provide more data to the controller Ation that is responsible for children that loaded on-demand.

Currently my Action looks like this, but I would like to have more information. 

1.public ActionResult GetEvents(TreeViewItem node)

In the Grid we have DataKeys that is very handy way to provide more data to the Action. Would that be good feature also on the TreeView or is there other way to provide data?

Thanks,

-Tatu

2 Answers, 1 is accepted

Sort by
0
Accepted
Alex Gyoshev
Telerik team
answered on 22 Nov 2010, 12:24 PM
Hello Tatu,

The attached telerik.treeview.js contains an update that allows you to attach a handler to the dataBinding event and add custom data that is to be sent to the server:

    function dataBindingHandler(e) {
        e.data = { foo: 'bar' };
    }


This change will be available with all upcoming builds. Thank you for the suggestion.

Regards,
Alex Gyoshev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Tx3
Top achievements
Rank 1
answered on 22 Nov 2010, 01:20 PM
Excellent! Thank you for the support. I think it's a good improvement.

-Tatu
Tags
TreeView
Asked by
Tx3
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Tx3
Top achievements
Rank 1
Share this question
or