or
Protected Sub myRadGrid_ItemCommand(sender As Object, e As GridCommandEventArgs) Handles myRadGrid.ItemCommand If (e.CommandName = RadGrid.InitInsertCommandName) Then pnlRegions_MPE.Show() End If End SubProtected Sub myRadGrid_NeedDataSource(sender As Object, e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles myRadGrid.NeedDataSource Dim SqlWhere As String = "" Dim items As String = "" If rblActive.SelectedValue = Nothing Then SqlWhere = " where r.bitActive = 1" rblActive.SelectedValue = 1 ElseIf rblActive.SelectedValue = "All" Then SqlWhere = "" ElseIf rblActive.SelectedValue = "0" Then SqlWhere = " where r.bitActive = 0" ElseIf rblActive.SelectedValue = "1" Then SqlWhere = " where r.bitActive = 1" rblActive.SelectedValue = 1 End If If ddlRadTeam.SelectedItem.Checked = True Then For Each item As RadComboBoxItem In ddlRadTeam.Items If item.Selected Then items += item.Value & "," End If Next End If If ddlRadTeam.SelectedItem.Checked = True And rblActive.SelectedValue = "All" Then SqlWhere = " where r.intTeamId IN (" & items & ")" ElseIf ddlRadTeam.Items.Count > 0 Then SqlWhere += " and r.intTeamId IN (" & items & ")" End If sql = "select " & SqlWhere myRadGrid.DataSource = getData(sql) End Sub

function asupImage_ClientFileUploaded(sender, args) { $find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>").ajaxRequestWithTarget('<%= btnFileUploaded.UniqueID %>', ''); }protected void asupImage_FileUploaded(object sender, FileUploadedEventArgs e) { string strAppplicationPath = HttpContext.Current.Request.ApplicationPath; string strLocalPath = HttpContext.Current.Request.MapPath(strAppplicationPath); e.File.SaveAs(strLocalPath + @"\Temp\" + e.File.FileName, true); } <telerik:RadButton ID="CloneSplitButton" AutoPostBack="false" runat="server" Text="Clone" EnableSplitButton="true" Height="22px" Enabled="true" CommandName="SaveReturn" UseSubmitBehavior="false" OnClientClicked="OnClientCloneSplitButtonClicked" OnClick="CloneSplitButton_Click"></telerik:RadButton><telerik:RadContextMenu ID="CloneContextMenu" runat="server" OnClientItemClicked="OnClientCloneContextMenuClicked" EnableRoundedCorners="true"> <Items> <telerik:RadMenuItem Text="New Quick Quote" /> <telerik:RadMenuItem Text="New Subscription" /> </Items></telerik:RadContextMenu><telerik:RadCodeBlock runat="server"> <script type="text/javascript"> function OnClientCloneSplitButtonClicked(sender, args) { if (args.IsSplitButtonClick()) { var currentLocation = $telerik.getLocation(sender.get_element()); var contextMenu = $find("<%= CloneContextMenu.ClientID %>"); contextMenu.showAt(currentLocation.x, currentLocation.y + 22); sender.set_autoPostBack(false); } else { sender.set_autoPostBack(true); window.setTimeout(function () { sender.set_enabled(false); }, 0); } } function OnClientCloneContextMenuClicked(sender, args) { var itemText = args.get_item().get_text(); var splitButton = $find("<%= CloneSplitButton.ClientID %>"); if (itemText == "New Quick Quote") { splitButton.set_text("Clone to New Quick Quote"); splitButton.set_commandName("CloneQuickQuote"); } else { splitButton.set_text("Clone to New Subscription"); splitButton.set_commandName("CloneSubscription"); } } </script></telerik:RadCodeBlock>