or

<telerik:RadCodeBlock ID="RadCodeBlock" runat="server"> <script type="text/javascript"> function pageLoad() { GetComboBox = function () { var combo = $find("<%= MyRadComboBox.ClientID %>"); return combo; }; }; </script> </telerik:RadCodeBlock>Method2 = function(){var combo = GetComboBox(); -->// getting error // do something}var index = ko.utils.arrayIndexOf(_spBodyOnLoadFunctionNames, "Method2");if( index === -1) { _spBodyOnLoadFunctionNames.push("Method2");}| function OnClientDropDownOpening(sender, eventArgs) |
| { |
| sender.S.style.width = 400; |
| } |
| function OnClientDropDownClosing(sender, eventArgs) |
| { |
| sender.S.style.width = 25; |
| } |
| <radc:RadComboBox ID="ddReasonCode" runat="server" width="25" NoWrap="true" OnClientDropDownOpening="OnClientDropDownOpening" OnClientDropDownClosing="OnClientDropDownClosing"> |
| <Items> |
| <radc:RadComboBoxItem runat="server" Text="FB - Explosive and Incendiary" Value="FB" ID="FB"/> |
| <radc:RadComboBoxItem runat="server" Text="FE - Poisons (Toxic Chemicals)-Low Degree" Value="FE" ID="FE"/> |
| <radc:RadComboBoxItem runat="server" Text="FW - Diving" Value="FW" ID="FW"/> |
| </Items> |
| </radc:RadComboBox> |

