Calling c# function from TreeList event

2 posts, 0 answers
  1. andrew
    andrew avatar
    1 posts
    Member since:
    Jul 2011

    Posted 18 Jul 2011 Link to this post

    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
  2. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 21 Jul 2011 Link to this post

    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!

  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top