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
Hello ocornuau,
I am currently looking into this issue of being able to deselect buttons of the UltraWebToolBar through JavaScript. I will do some research into this matter and give you a progress update by the end of the day tomorrow.
Sincerely,Mike P.Developer Support EngineerInfragistics, Inc.www.infragistics.com
Thank you for your patience. Upon further research this seems to be an issue with the UltraWebToolbar control. I have created a private case for this issue. I will contact you with further details through this private case.