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

How to set a value when click on Tab item

1 Answer 48 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Vishnu
Top achievements
Rank 1
Vishnu asked on 15 Oct 2014, 07:07 AM
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.

1 Answer, 1 is accepted

Sort by
0
Nencho
Telerik team
answered on 17 Oct 2014, 12:48 PM
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.

 
Tags
TabStrip
Asked by
Vishnu
Top achievements
Rank 1
Answers by
Nencho
Telerik team
Share this question
or