fix x tenere filtraggio in caso di "navigazione" negli oggetti della pagina

This commit is contained in:
Samuele E. Locatelli
2013-02-19 17:57:48 +01:00
parent dba527a9d7
commit d49492824b
5 changed files with 31 additions and 4 deletions
@@ -18,7 +18,8 @@
<asp:Label runat="server" ID="lblMacchineInteressate" />
</div>
<div style="float: right;">
<asp:TextBox runat="server" ID="txtCercaMacchine" Width="8em" Text="*" />
<asp:TextBox runat="server" ID="txtCercaMacchine" Width="8em" Text="*" AutoPostBack="True"
ontextchanged="txtCercaMacchine_TextChanged" />
</div>
<div>
<asp:ListBox ID="listMacchine" runat="server" AutoPostBack="True" DataSourceID="odsMacchine"
@@ -98,5 +98,14 @@ public partial class mod_famiglieMacchine :ApplicationUserControl
btnShowAdd.Text = user_std.UtSn.Traduci("showAddMacchine");
}
}
/// <summary>
/// cambio filtraggio macchine
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void txtCercaMacchine_TextChanged(object sender, EventArgs e)
{
}
}
@@ -1,10 +1,9 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:2.0.50727.4927
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
@@ -10,7 +10,7 @@
<asp:GridView ID="grView" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
Width="100%" OnSelectedIndexChanged="grView_SelectedIndexChanged" OnDataBound="grView_DataBound"
DataKeyNames="idxMacchina" DataSourceID="ods" OnRowDataBound="grView_RowDataBound"
OnRowUpdating="grView_RowUpdating">
OnRowUpdating="grView_RowUpdating" onpageindexchanged="grView_PageIndexChanged" onsorted="grView_Sorted">
<RowStyle CssClass="ctrRowStyle" />
<AlternatingRowStyle CssClass="ctrAltRowStyle" />
<EditRowStyle CssClass="ctrEditRowStyle" />
@@ -584,6 +584,24 @@ public partial class mod_macchine : ApplicationUserControl
return answ;
}
}
/// <summary>
/// cambio pagina...
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void grView_PageIndexChanged(object sender, EventArgs e)
{
doUpdate();
}
/// <summary>
/// sort!
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void grView_Sorted(object sender, EventArgs e)
{
doUpdate();
}
#endregion
}