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

disable tab click

1 Answer 60 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
appdev
Top achievements
Rank 1
appdev asked on 10 Aug 2009, 03:32 AM
how do i disable the tab click onclientselecting.

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 10 Aug 2009, 04:34 AM
Hi Duy,

The set_cancel() method lets you stop the selection by passing true as parameter in OnClientTabSelecting event. See the example shown below.

JavaScript:
 
<script>  
 function OnClientTabSelecting(sender, eventArgs)  
 {  
       if (proceed) // condition if any  
       {  
          eventArgs.set_cancel(true);  
       }  
 }  
</script> 

Thanks,
Princy.
Tags
TabStrip
Asked by
appdev
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or