Hi Ankri,
I was not able to reproduce this behavior.
Attached is the archive with a sample project I used together with a short video demonstrating my steps.
Would you please modify my sample or provide yours?
Thanks,
Alex, ASP.NET Team
hello alex,
We have just find solution:
it seems that when the property pagesize = 0 and the property AllowFocusedRow = "true" the problem appears!
aspx :
<dx:LinqServerModeDataSource ID="LinqServerModeDataSource1" runat="server" OnSelecting="lsmds_Selecting"
DefaultSorting="[DateGC] desc" />
<dx:ASPxGridView ID="ASPxGridView1" runat="server" Width="100%" KeyFieldName="idcandidat"
AutoGenerateColumns="false" OnDataBound="ASPxGridView1_DataBound" DataSourceID="LinqServerModeDataSource1">
<Columns>
<dx:GridViewDataTextColumn ShowInCustomizationForm="true" Visible="true" VisibleIndex="21"
Name="LibCandidat" FieldName="LibCandidat" Caption="<%$ Resources:LocalizedText, lb_778 %>"
Width="300px">
<CellStyle HorizontalAlign="Left" Wrap="True">
</CellStyle>
</dx:GridViewDataTextColumn>
</Columns>
<SettingsBehavior EnableRowHotTrack="true" AllowFocusedRow="false" ConfirmDelete="true" />
<SettingsPager PageSize="0">
</SettingsPager>
<Settings ShowFilterBar="Visible" ShowFilterRow="True" />
</dx:ASPxGridView>
c#
protected void lsmds_Selecting(object sender, DevExpress.Data.Linq.LinqServerModeDataSourceSelectEventArgs e)
{
dc_CandidatDataContext gDC = new dc_CandidatDataContext(HttpContext.Current.Session["Db_Source"].ToString());
var query = from v in gDC.V_ListeCandidats_E
where (v.idPoste == -1) && ((v.EtatPoste == 0) || (v.EtatPoste == null))
select v;
e.KeyExpression = "idcandidat";
e.QueryableSource = query;
}
protected void ASPxGridView1_DataBound(Object sender, EventArgs e)
{
ASPxGridView grid = sender as ASPxGridView;
if (grid.FilterExpression != "")
grid.SettingsPager.PageSize = 5;
else
grid.SettingsPager.PageSize = 0;
}
Is your intention to post an answer to your own question?
- If so, then proceed.
- If you simply wanted to post additional information, ask for further clarification, or to just say "Thanks!", please click Leave a Comment.
- If you wish to edit your original question, please use the Edit button in the Toolbox at the top right corner of that entry.
Facebook
Twitter
Google+