Hi, there, Just trying to change item status from Clientside and got an undifined error
here is my code
Strange it will actually not work
any idea?
here is my code
| <telerik:RadToolBar ID="ToolListing" runat="server" CssClass="toolbar" OnClientButtonClicking="onToolButtonClick"> |
| <collapseanimation type="None"></collapseanimation> |
| <items> |
| <telerik:RadToolBarButton runat="server" CommandName="ALL" Text="All" Value="ALL" |
| ImageUrl="~/Images/Icons/select_all_new.png" ImagePosition="AboveText" PostBack="False"> |
| </telerik:RadToolBarButton> |
| </items> |
| </telerik:RadToolBar> |
| <telerik:RadCodeBlock ID="RadCodeBlock2" runat="server"> |
| <script type="text/javascript"> |
| <!-- |
| function onToolButtonClick(sender, args) { |
| if (args.get_item().get_commandName() == 'ALL') { |
| var atoolBar = $find("<%=ToolListing.ClientID %>"); |
| atoolbar.findItemByValue("ALL").set_enabled(false); |
| args.set_cancel(true); |
| } |
| } |
| --> |
| </script> |
| </telerik:RadCodeBlock> |
Strange it will actually not work
any idea?