or
<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