How to set a value when click on Tab item

2 posts, 0 answers
  1. Vishnu
    Vishnu avatar
    31 posts
    Member since:
    Jul 2012

    Posted 15 Oct 2014 Link to this post

    Hi guys,
    I am using Telerik version 2014 Q1. I have a menu items with sub items, you can check attached image.
    I want to set a value to the variable when I clicked on particular SubItem. There is load event, I tried to do, but its not working out.
    Can anybody please let me know how to set a value to the variable when click on subitem.

    Thanks in advance.

  2. Nencho
    Admin
    Nencho avatar
    1457 posts

    Posted 17 Oct 2014 Link to this post

    Hello Vishnu,

    In order to achieve the desired functionality, you can use the OnClientItemClicking and use the EventArguments, in order to set a preferable value at client-side. Please consider the following implementation :

    <script type="text/javascript">
     
           function OnClientItemClicking(sender, args) {
               args.get_item().set_value("CustomValue");
           }
     
       </script>


    Regards,
    Nencho
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

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