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

Calling c# function from TreeList event

1 Answer 70 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
andrew
Top achievements
Rank 1
andrew asked on 18 Jul 2011, 01:48 PM
I want to call a function from the aspx.cs file every time a row in the treeList is selected or deselected.

I've seen the demo and I can call a javascript function but i'm not sure how I can call a function from the aspx.cs file from javascript (or if you can)

Alternatively I want to just call a function from the aspx.cs file from a treeList function.

Thanks

Andy

1 Answer, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 21 Jul 2011, 08:13 AM
Hi Andrew,

Try enabling server-side selection for the RadTreeList. Thus you can handle the server-side ItemCommand event of the RadTreeList and call your function there.

More information for the treelist server-side selection is available in the below online resources:
http://demos.telerik.com/aspnet-ajax/treelist/examples/selecting/serversideselection/defaultcs.aspx
http://www.telerik.com/help/aspnet-ajax/treelist-server-side-selection.html

All the best,
Iana
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
TreeList
Asked by
andrew
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Share this question
or