
Can someone tell my why my GridButtonColumn Below shows up as the 1st column for this grid, instead of as the last column as specified?
<telerik:RadGrid ID="rgACWF1" runat="server" AllowCustomPaging="True" OnItemDataBound="rgACWF1_ItemDataBound" AllowPaging="True" AutoGenerateColumns="False" GridLines="None" OnItemCreated="rgACWF1_ItemCreated" OnItemCommand="rgACWF1_ItemCommand" AllowAutomaticInserts="false"> <PagerStyle BackColor="White" Mode="Advanced" ShowPagerText="false" Position="Bottom" /> <MasterTableView AllowCustomSorting="True" datakeynames="ID" EditMode="InPlace" CommandItemDisplay="Bottom" InsertItemDisplay="Bottom" TableLayout="Auto"> <Columns> <telerik:GridEditCommandColumn UniqueName="ACWF1EditCommandColumn" InsertText="Save" UpdateText="Save" /> <telerik:GridBoundColumn DataField="Name" HeaderText="Rating" /> <telerik:GridNumericColumn DataField="Value" HeaderText="Value" /> <telerik:GridButtonColumn CommandName="Delete" Text="Delete" UniqueName="ACWF1DeleteColumn" /> </Columns> <CommandItemSettings AddNewRecordText="Add New" RefreshText="Refresh" /> <%-- <CommandItemTemplate> <asp:Button runat="server" ID="btnAddConfidentialityScore" Text="Add" CommandName="AddConfidentialityScore" /> </CommandItemTemplate> --%> </MasterTableView> </telerik:RadGrid>Hello,
I am using DeleteCommand of radGrid to delete items from grid. Item gets removed on deletion but paging does not getting refreshed. Initailally my grid was containing 2 pages. I deleted all items from second page, still pager shows 2 page count.
Here is the code,
<
telerik:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="True" AllowPaging="True"
AllowSorting="True" AutoGenerateColumns="False" GridLines="Vertical" OnNeedDataSource="RadGrid1_NeedDataSource"
OnItemDataBound="RadGrid1_ItemDataBound" Skin="WebBlue" AllowMultiRowEdit="True"
OnDeleteCommand="RadGrid1_DeleteCommand" OnUpdateCommand="RadGrid1_UpdateCommand"
OnItemCreated="RadGrid1_ItemCreated" Width="1200px" AutoGenerateEditColumn="True"
OnItemCommand="RadGrid1_ItemCommand" AllowMultiRowSelection="True" AutoGenerateDeleteColumn="True"
PageSize="22" AllowAutomaticDeletes="True" OnPageIndexChanged="RadGrid1_PageIndexChanged">
<ExportSettings ExportOnlyData="True" IgnorePaging="True" OpenInNewWindow="True">
<Pdf AllowAdd="false" AllowCopy="true" AllowModify="true" AllowPrinting="true" Author="Anonymous"
Keywords="None" PageBottomMargin="1in" PageLeftMargin="10px" PageRightMargin="10px"
PageTopMargin="1in" PageTitle="Admin Report" Subject="RadGrid Export" Title="RadGrid export"
PaperSize="A4" PageWidth="800px" />
</ExportSettings>
<PagerStyle HorizontalAlign="Left" Mode="Slider" />
<MasterTableView DataKeyNames="Fadder_ID,Referance_Id">
<RowIndicatorColumn Visible="False">
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>
<ExpandCollapseColumn Visible="False" Resizable="False">
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
<Columns>
<telerik:GridTemplateColumn UniqueName="Template1" HeaderText="ID" AllowFiltering="false">
<HeaderStyle HorizontalAlign="Center" Width="20px" />
<ItemTemplate>
<%# this.RadGrid1.CurrentPageIndex * this.RadGrid1.PageSize + Container.ItemIndex + 1%>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridBoundColumn DataField="Name" HeaderText="Avsender" UniqueName="FedderName"
ReadOnly="True">
<HeaderStyle HorizontalAlign="Center" Width="150px" />
<ItemStyle HorizontalAlign="Left" />
</telerik:GridBoundColumn>
</
Columns>
<EditFormSettings>
<PopUpSettings ScrollBars="None"></PopUpSettings>
</EditFormSettings>
</MasterTableView>
<GroupingSettings CaseSensitive="False" />
</telerik:RadGrid>
