I want to show the CommandItemTemplate in "Top" only. I am using the default commanditemtemplate of RadGrid. I have set CommandItemDisplay = "Top", then also the commanditemtemplate toolbar is showing in top and bottom.
Please look on to the following code:
<telerik:RadGrid AutoGenerateColumns="false" ID="RadGrid1" AllowAutomaticUpdates="True"
AllowAutomaticInserts="False" AllowAutomaticDeletes="False" AllowFilteringByColumn="True"
AllowSorting="True" PageSize="20" ShowFooter="True" AllowPaging="True" runat="server"
GridLines="None" EnableLinqExpressions="false" EnableHeaderContextMenu="true" Height="780px"
EnableHeaderContextFilterMenu="true" AllowMultiRowSelection="True"
OnPreRender="RadGrid1_PreRender"
OnInsertCommand="RadGrid1_InsertCommand"
OnUpdateCommand="RadGrid1_UpdateCommand"
OnDeleteCommand="RadGrid1_DeleteCommand"
OnNeedDataSource="RadGrid1_NeedDataSource"
OnItemCommand="RadGrid1_ItemCommand"
OnItemCreated="RadGrid1_ItemCreated"
OnItemEvent="RadGrid1_ItemEvent"
OnExportCellFormatting = "RadGrid1_ExportCellFormatting">
<PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="true"></PagerStyle>
<GroupingSettings CaseSensitive="false"></GroupingSettings>
<ExportSettings IgnorePaging="false" ExportOnlyData="true" OpenInNewWindow="true">
<Pdf PageWidth="1000px" />
</ExportSettings>
<MasterTableView DataKeyNames=" ID" AutoGenerateColumns="false" IsFilterItemExpanded="false"
EditMode="Batch" CommandItemDisplay="Top" AllowFilteringByColumn="True"
ShowFooter="false" TableLayout="Auto" ShowHeadersWhenNoRecords="true" Width="112%"
CommandItemSettings-SaveChangesText="Save" CommandItemSettings-CancelChangesText="Cancel"
CommandItemSettings-AddNewRecordText="Add">
<%--Buttons Settings of Export and Add New--%>
<CommandItemSettings ShowAddNewRecordButton="true" ShowExportToWordButton="true"
ShowExportToExcelButton="true" ShowExportToCsvButton="false" ShowExportToPdfButton="true" />
<%--Type of Edit - Show EditMode of one Cell at a time or Row at a time--%>
<BatchEditingSettings EditType="Cell" />
<%--Sort Expression Settings--%>
<SortExpressions>
<telerik:GridSortExpression FieldName="Product_Name" />
</SortExpressions>
<Columns>
......
</Columns>
</MasterTableView>
<HeaderStyle Height="40px" />
<%-- Functionality Settings --%>
<ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True">
<Resizing AllowColumnResize="True" AllowRowResize="false" ClipCellContentOnResize="true"
AllowResizeToFit="true" EnableRealTimeResize="True" ResizeGridOnColumnResize="True" />
<Scrolling AllowScroll="true" UseStaticHeaders="True" SaveScrollPosition="true"/>
<Selecting AllowRowSelect="true" />
<ClientEvents />
</ClientSettings>
</telerik:RadGrid>
I want to show commanditemtemplate in "Top" only.
Please suggest me, what i am missing here.