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,
Thank you for your patience. I have received an update concerning this matter from the development team. It seems after further research this isn’t a development issue and having the buttons be selected and deselected through JavaScript can be achieved by having the property ToggleButton of the TBarButton item to be set to true. I have attached a sample to demonstrate this behavior.
Please let me know if you have any questions concerning this matter.
Sincerely,Mike P.Developer Support EngineerInfragistics, Inc.www.infragistics.com
hello,I am still awaiting a solution. Have you solved this problem and if so which number has the patch? Will we get to see this problem resolved by the end of the year?thank you
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.
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.