Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
990
How deselect buttons?
posted

Hello everyone,

I have a big problem, I can not deselect the buttons on a toolbar :-(
Is there a method other than that I try? . Items.fromKey always return null! Why?

Is there a method to return the target element without obtaining a null ?

<script language="javascript" type="text/javascript">

function init(Button, Event) { 

var toolBar1 = igtbar_getToolbarById('<%=UltraWebToolbar1.ClientID%>');  
       
var btnPNE = toolBar1.Items.fromKey("btnPNE");
btnPNE.setSelected(false);

var btnPNE = toolBar1.Items.fromKey("btnPE");
btnPNE.setSelected(false);

}
</script>


...


    <igtbar:UltraWebToolbar ID="UltraWebToolbar1" runat='server'>
        <Items>             
            <igtbar:TBButtonGroup Key="StatutAction"  >
                <Buttons>
                   
                   <igtbar:TBarButton Tag="PNE" Key="btnPNE" ToggleButton="true" >                          
                        <DefaultStyle Width="23px" Height="22px" BackgroundImage="~/Styles/Btninactif_PieceNonEchue.gif"></DefaultStyle>
                        <HoverStyle Width="23px" Height="22px" BackgroundImage="~/Styles/BtnActif_PieceNonEchue.gif"></HoverStyle>
                        <SelectedStyle Width="23px" Height="22px" BackgroundImage="~/Styles/BtnActif_PieceNonEchue.gif"></SelectedStyle>                               
                   </igtbar:TBarButton> 
        
                   <igtbar:TBarButton Tag="PE" Key="btnPE" ToggleButton="true" >                           
                        <DefaultStyle Width="23px" Height="22px" BackgroundImage="~/Styles/Btninactif_PieceEchue.gif"></DefaultStyle>
                        <HoverStyle Width="23px" Height="22px" BackgroundImage="~/Styles/BtnActif_PieceEchue.gif"></HoverStyle>
                        <SelectedStyle Width="23px" Height="22px" BackgroundImage="~/Styles/BtnActif_PieceEchue.gif"></SelectedStyle>                               
                   </igtbar:TBarButton>
 
               </Buttons>                       
            </igtbar:TBButtonGroup>               
        </Items>
 
    </igtbar:UltraWebToolbar>
 
 
          <igtxt:WebImageButton AutoSubmit="false" CausesValidation="false"  ID="WebImageButton1" runat="server">
            <ClientSideEvents Click="init" />
        </igtxt:WebImageButton>  








Thank you for your answers.

cordially

Parents Reply Children
No Data