or

<CommandItemTemplate> <telerik:RadToolBar runat="server" ID="RadToolBar1" OnButtonClick="RadToolBar1_ButtonClick Skin="WebBlue"> <Items> <telerik:RadToolBarButton Text="Apply filter" CommandName="FilterRadGrid" ImageUrl="~/Images/Refresh.gif"/> <telerik:RadToolBarButton Text="Add new" CommandName="xInsert" ImageUrl="~/Images/AddRecord.gif" /> </Items> </telerik:RadToolBar> </CommandItemTemplate>Protected Sub RadGrid1_ItemCommand(ByVal source As Object, ByVal e As GridCommandEventArgs) If e.CommandName = "FilterRadGrid" Then RadFilter1.FireApplyCommand() Else If e.CommandName = "xInsert" Then Dim newWindow As New Telerik.Web.UI.RadWindow() newWindow.ID = "InsertWindow" newWindow.NavigateUrl = "~/XDW/EditPalletQty.aspx" newWindow.VisibleOnPageLoad = True RadWindowManager1.Windows.Add(newWindow) End If End If End SubPosted 21 hours ago (permalink)
