Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

Telerik Pager Issue with ASP MVC 2

$
0
0

Dears , 

           I`im using ASP MVC 2 , and use RadGrid Component , and i enabled the pager,,,but when i pressed next (in the pager ) the whole page is reloaded to the new Grid Data

here is my code

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="TransactionsGrid">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="TransactionsGrid"
LoadingPanelID="RadAjaxLoadingPanel1" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" Runat="server"
Skin="Default">
</telerik:RadAjaxLoadingPanel>

<telerik:RadGrid ID="TransactionsGrid" runat="server" AllowSorting="True" CellSpacing="0"
GridLines="None" AllowPaging="True" PageSize="10" OnItemDataBound="TransactionsGrid_ItemDataBound">

<AlternatingItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
<MasterTableView HierarchyLoadMode="Client" AutoGenerateColumns="False" TableLayout="Fixed">
<Columns>
<telerik:GridTemplateColumn UniqueName="TemplateColumn" HeaderText="Row" AllowFiltering="false">
<ItemTemplate>
<asp:Label ID="numberLabel" runat="server" Width="30px" />
</ItemTemplate>
<HeaderStyle Width="30px" />
</telerik:GridTemplateColumn>
<telerik:GridBoundColumn DataField="AreaName" FilterControlAltText="Filter AreaName column"
HeaderText="Area" SortExpression="AreaName" UniqueName="AreaName">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="PetrolCompanyName" FilterControlAltText="Filter PetrolCompanyName column"
HeaderText="Petrol Company" SortExpression="PetrolCompanyName" UniqueName="PetrolCompanyName">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="ProductName" FilterControlAltText="Filter ProductName column"
HeaderText="Product" SortExpression="ProductName" UniqueName="ProductName">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Value" DataType="System.Decimal" FilterControlAltText="Filter Value column"
HeaderText="Value" SortExpression="Value" UniqueName="Value">

<telerik:GridBoundColumn DataField="Trx_result" FilterControlAltText="Filter Trx_result column"
HeaderText="Result" SortExpression="Trx_result" UniqueName="Trx_result">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="StationCode" FilterControlAltText="Filter StationCode column"
HeaderText="Station Id" SortExpression="StationCode" UniqueName="StationCode"
Display="false">
</telerik:GridBoundColumn>
</Columns>
</MasterTableView>
<HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
<ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
<PagerStyle EnableSEOPaging="True" />
</telerik:RadGrid>


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>