or
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server"> <script type="text/javascript"> function OnClientItemSelected(sender, args) { var vidpath = args.get_item().get_name(); PlayVid(vidpath); <-- This is where I was thinking of calling a code-behind vb function } </script> <form id="form1" runat="server"> <telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager> Select a file below to view it.<br /><br /> <telerik:RadFileExplorer ID="RadFileExplorer1" runat="server" Height="250px" InitialPath="/VideoLibrary" Skin="Outlook" EnableCreateNewFolder="False" ToolTip="Double-click a video from the list to view it." TreePaneWidth="0px" VisibleControls="Grid, ContextMenus" onclientitemselected="OnClientItemSelected" Width="606px"> <Configuration SearchPatterns="*.*" ViewPaths="/VideoLibrary"> </Configuration> </telerik:RadFileExplorer> <br /><br /> <ASPNetVideo:WindowsMedia ID="WindowsMedia1" runat="server" Height="480px" VideoURL="some_video_title.wmv" Width="640px" WMode="Window"> </ASPNetVideo:WindowsMedia> </form></asp:Content> <rad:RadGrid ID="gridClients" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" DataSourceID="ObjectDataSource1" EnableAJAX="True" EnableAJAXLoadingTemplate="True" GridLines="None" LoadingTemplateTransparency="50" ShowStatusBar="True" Skin="Windows" Width="98%" AllowFilteringByColumn="True" PageSize="25" DataBound="gridClients_ItemDataBound" OnUpdateCommand="gridClients_UpdateCommand" OnInsertCommand="gridClients_InsertCommand" OnDeleteCommand="gridClients_DeleteCommand"> ... <EditFormSettings EditFormType="Template" UserControlName="ClientGrid" > <EditColumn UniqueName="EditCommandColumn"></EditColumn> <FormTemplate> <table cellpadding="2" cellspacing="0" border="0" width="100%"> <tr id="SpecialInstructRow" runat="server" visible="false"> <td> <label for="SpecialInstuct">Billing Notes:</label> <asp:TextBox ID="SpecialInstructTextBox" runat="server" Text='<%# Bind("SpecialInstructions") %>' TextMode="MultiLine" ></asp:TextBox> </td> </tr> ... </table><li class="rmItem"> <a class="rmLink radMenuLoginReq" href="..."> <img src="..."> <span class="rmText rmExpandDown">Menu Item</span> </a> <div class="rmSlide"> ... </div></li>
Dear Forum.
I added a button to a command item template in my grid and now only the command item template is showig and not the Export to Excel button. I need both buttons to show, please advise.
Thanks,
Celeste
<CommandItemSettings ShowExportToExcelButton="true" ShowAddNewRecordButton="false" ShowRefreshButton="false" />
<CommandItemTemplate>
<asp:Button ID="btnExpandAll" Text="Expand All" Runat="server" CommandName="ExpandAll"></asp:Button>
</CommandItemTemplate>
<PagerStyle AlwaysVisible="True" PageSizeLabelText="# Per Page" ShowPagerText="True" Mode="NextPrevAndNumeric" /><PagerStyle AlwaysVisible="True" PageSizeLabelText="# Per Page" ShowPagerText="True" Mode="NextPrevNumericAndAdvanced" /><telerik:RadGrid ID="rgShip" runat="server" AutoGenerateColumns="false" Skin="Windows7" AllowMultiRowSelection="false" OnNeedDataSource="LoadMethods"> <MasterTableView DataKeyNames="ship_meth_id" > <Columns> <telerik:GridButtonColumn DataTextField="ship_meth_desc" CommandName="Select" ItemStyle-HorizontalAlign="Left" HeaderText="Shipping Method" UniqueName="shipmethdesc"></telerik:GridButtonColumn> </Columns> </MasterTableView> </telerik:RadGrid>Protected Sub LoadMethods() Try Dim ds As dataset ds = DBSvc.GetDataset, "sp_Ship_Meth_SEL") Dim dv As DataView dv = ds.Tables(0).DefaultView dv.Sort = "ship_meth_desc" rgShip.DataSource = dv Protected Sub rgShip_ItemCommand(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles rgShip.ItemCommand Try If e.CommandName = "Select" Then Dim dataItem As GridDataItem = DirectCast(e.Item, GridDataItem) txtMethod.Text = dataItem("shipmethdesc").Text