disable tab click

2 posts, 0 answers
  1. appdev
    appdev avatar
    223 posts
    Member since:
    Sep 2008

    Posted 09 Aug 2009 Link to this post

    how do i disable the tab click onclientselecting.
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 09 Aug 2009 Link to this post

    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.
Back to Top