I have the following javascript function for the OnClientTransferred event of a RadListBox. This function works fine with Firefox and Chrome but I get a javascript error with IE 8.
Here is my javascript.
The error from IE 8 is the following.
"Microsoft Jscript runtime error: Object doesn't support this property or method"
It seems to fail at line with the forEach statement.
Thanks in Advance
Here is my javascript.
| <telerik:RadCodeBlock ID="RadCodeBlockMain" runat="server"> |
| <script type="text/javascript"> |
| function OnClientTransferredHandler(sender, e) { |
| var myitems; |
| var radbox = $find('<%= CurrentlyTransferredValues.ClientId %>'); |
| var radbox2 = $find('<%= SourceListBox.ClientId %>'); |
| myitems = e.get_items(); |
| myitems.forEach(function(item) { radbox.set_value(radbox.get_value() + item.get_value() + ","); }); |
| radbox2.set_value(e.get_sourceListBox().get_id()); |
| } |
| </script> |
| </telerik:RadCodeBlock> |
"Microsoft Jscript runtime error: Object doesn't support this property or method"
It seems to fail at line with the forEach statement.
Thanks in Advance